Two errors:
Identifier expected and assignment makes pointer from int without cast problem on this line.
int isThere = contains("linux",x);
Any help would be appreciated, Thank you.




Posted 10 February 2011 - 03:58 PM
int isThere = contains("linux",x);
Posted 11 February 2011 - 11:50 AM
Posted 12 February 2011 - 04:35 AM
int contains(char target[], char source[])
{
char * x = strstr(source, target);
if(x != NULL) return 1;
else return 0;
}
int isThere = contains("linux", x);
This post has been edited by DOWmad: 12 February 2011 - 04:36 AM
Posted 12 February 2011 - 07:05 AM
char isThere = contains("linux", char * x);
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
