never help with pointer and functions. i want to creat a function what check if "char *test" is inside "char array[1]"
int main()
{
char array[1] = {"one", "two"};
char *test = "one";
check(test, array);
}
void check(char test, char array[])
{
int i;
for(i = 0; i <= 1; i++)
{
if(strcmp(array[i], test) == 0)
{
//It never comes in this if statment :(
}
else
{
//It never comes in this else statment :(
}
}
}