for ( p = strtok_r(p, ",", &nextstr); p != NULL; p = strtok_r(nextstr, ",", &nextstr) ) #else for ( p = strtok(p, ","); p != NULL; p = strtok(NULL, ",") ) #endif
for ( p = PL_strtok_r(p, ",", &nextstr); p != NULL; p = PL_strtok_r(nextstr, ",", &nextstr) )
static int pref_CountListMembers(char* list)/*--------------------------------------------------------------------------------------*/{    int members = 0;    char* p = list = PL_strdup(list);#ifdef HAVE_STRTOK_R    char* nextstr;    for ( p = strtok_r(p, ",", &nextstr); p != NULL; p = strtok_r(nextstr, ",", &nextstr) )#else    for ( p = strtok(p, ","); p != NULL; p = strtok(NULL, ",") )#endif        members++;    PR_FREEIF(list);    return members;}