C language > Beginner questions
Help needed on strings
(1/1)
aravindva:
Can somebody help me with the following problem...
It's very urgent..
Given a string and a sub-string as input, write a function to return the number of occurrences and/or position of the first occurrence.
frankie:
This really seems an homework task.
So to help you try the function "strstr" from standard library (you'll find description in the help). ::)
prototype:
--- Code: ---char * strstr(const char *string, const char *substring);
--- End code ---
Navigation
[0] Message Index
Go to full version