char* child = strtok_r(&child_list[*indx], ";", &nextstr); #else char* child = strtok(&child_list[*indx], ";"); #endif
char* child = PL_strtok_r(&child_list[*indx], ";", &nextstr);
PREF_NextChild(char *child_list, int *indx){#if HAVE_STRTOK_R    char *nextstr;    char* child = strtok_r(&child_list[*indx], ";", &nextstr);#else    char* child = strtok(&child_list[*indx], ";");#endif    if (child)        *indx += PL_strlen(child) + 1;    return child;}