well is there? by string i mean std::string
C strings
Simply insert a \0
where you wish to split. This is about as built-in as you can get with standard C functions.
This function splits on the first occurance of a char
separator, returning the second string.
char *split_string(char *str, char separator) {
char *second = strchr(str, separator);
if(second == NULL)
return NULL;
*second = '\0';
++second;
return second;
}