2007-02-05から1日間の記事一覧
こんな感じかな。strspnとstrcspnを使います。 #include <string.h> char *strtok_r(char *str, const char *delim, char **saveptr) { size_t width; char* head; head = (NULL != str)? str: *saveptr; width = strcspn(head, delim); if(0 == width){ head += strsp</string.h>…