This shows you the differences between two versions of the page.
c:string.h:strchr [2013/01/22 22:02] 127.0.0.1 external edit |
c:string.h:strchr [2015/01/10 19:10] (current) 2001:a60:240a:7001:896a:d8c6:fabb:d134 [C Sourcecode Example] |
||
---|---|---|---|
Line 21: | Line 21: | ||
int main( void ) { | int main( void ) { | ||
char *ptr; | char *ptr; | ||
- | char string[] = "Find the firs occurrence of a character and count it !"; | + | char string[] = "Find the first occurrence of a character and count it !"; |
if( strchr(string,'o') == NULL ) | if( strchr(string,'o') == NULL ) | ||
printf( "Cant find o character\n" ); | printf( "Cant find o character\n" ); |