strtok_d
argp = strtok_d(optarg, "+-", &nextop);
} while ((argp = strtok_d(NULL, "+-", &nextop)) != NULL);