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 [2024/02/16 01:06] (current) |
||
|---|---|---|---|
| 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" ); | ||