Please use strstr to find occurance of a sub string.
http://www.cplusplus.com/reference/clibrary/cstring/strstr/[
^]
To split the second part, you can seek the pointer to the end of the first sub string
char buff[200];
char part1[200];
char part2[200];
int nPart1Len = strlen("search");
int nPart2Len = strlen(buff) - nPart1Len;
strcpy( buff, "searched" );
if(strstr( buff, "search" )) {
memcpy( part1, buff, nPart1Len); memcpy( part2, buff + strlen( "search" ), nPart2Len );
part1[nPart1Len] = 0; part2[nPart2Len] = 0; }