All I could find was a function that returns a pointer to a sub-string.
http://www.cplusplus.com/ref/cstring/strstr.html
Would that help?
Here's an example:
#include <stdio.h>
#include <string.h>
int main(void) {
char str[] = "Hello, world!";
char *subStr = strstr(str, "world");
printf("%s, %s\n", "Goodbye", subStr);
return 0;
}
/* OUTPUT:
* Goodbye, world!
*/