#include
#include
int mysubstr(const char *str, const char* str0, char str1[])
{
str1[0] = 0;
char* strp = strstr(str, str0);
if (strp == NULL)
{
return 0;
}
strcpy(str1, strp + strlen(str0));
}
int main()
{
char* p = "fdsafdsa a:121321321321312321";
char data[100];
mysubstr(p, "a:", data);
cout<
return 0;
}