Function Input
char s[], char c Something in this spirit:
char s[] = "vsjkhgvsdfvk sdfgjhsbdfjhgsd jhfjklhfsdklhkhskdf"; char c = 'j'; char * p = s; while(p = strchr(p,c)) printf("at pos %d\n",p++-s); while , but this is how it should be. Well, or replace with while((p = strchr(p,c)) != NULL) . - Harryp is the current position of the last character found in the string. Just know, let us work on your own, experiment, read, so you’ll have much better used methods in your memory ... - HarrySource: https://ru.stackoverflow.com/questions/614855/
All Articles
strchr()to help you, for example ... - Harry