JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... const char * delim , char ** saveptr ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): strtok_r (): _POSIX_C_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE 説明 The strtok () function breaks a st ... ring into a sequence of zero or more nonempty tokens. On the first call to strtok (), the string to be parsed should be specified in str . In each subsequent call that should parse the same string, str mu ... に区切るのに使用する バイト集合を指定する。同じ文字列を解析する一連の呼び出しにおいて、 delim に違う文字列を指定してもよい。 strtok () のそれぞれの呼び出しでは、次のトークンを格納したヌル終端 された文字列へのポインターが返される。この文字列には区切りバイ ... ... const char * delim , char ** saveptr ); glibc 向けの機能検査マクロの要件 ( feature_test_macros (7) 参照): strtok_r (): _POSIX_C_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE 説明 The strtok () function breaks a st ... ring into a sequence of zero or more nonempty tokens. On the first call to strtok (), the string to be parsed should be specified in str . In each subsequent call that should parse the same string, str mu ... に区切るのに使用する バイト集合を指定する。同じ文字列を解析する一連の呼び出しにおいて、 delim に違う文字列を指定してもよい。 strtok () のそれぞれの呼び出しでは、次のトークンを格納したヌル終端 された文字列へのポインターが返される。この文字列には区切りバイ ... ... ては、 attributes (7) を参照。 インターフェース 属性 値 strsep () Thread safety MT-Safe 準拠 4.4BSD. 注意 strsep () 関数は、 strtok (3) 関数が空のフィールドを 扱えないために、その代替品として導入された。 しかしながら、 strtok (3) 関数は C89/C99 に準拠して ... は失われてしまう。 関連項目 index (3), memchr (3), rindex (3), strchr (3), string (3), strpbrk (3), strspn (3), strstr (3), strtok (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報 ... ... , strsep, strspn, strstr, strtok, strxfrm, index, rindex - 文字列を操作する関数 書式 #include < strings.h > int strcasecmp(const char * s1 , const char * s ... ar * needle ); 部分文字列 needle が文字列 haystack 中 で最初に現れる位置を探し、その部分文字列へのポインターを返す。 char *strtok(char * s , const char * delim ); 文字列 s から、 delim のいずれかのバイトで区切ったトークンを取り出す。 size_t strxfrm(cha ... (3), strncasecmp (3), strncat (3), strncmp (3), strncpy (3), strpbrk (3), strrchr (3), strsep (3), strspn (3), strstr (3), strtok (3), strxfrm (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロジェクト ... ... wcstok () 関数は、 strtok (3) 関数に対応するワイド文字関数に、 マルチスレッドセーフの動作をさせるための引数を追加したものである。 この関数を用いて、 ... *state; for (token = wcstok(wcs, " \t\n", &state); token != NULL; token = wcstok(NULL, " \t\n", &state)) { ... } 関連項目 strtok (3), wcschr (3) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロジェクトの ... ... ts for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = strtok(NULL, " "))) { nreqs++; reqs = realloc(reqs, sizeof(reqs[0]) * nreqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs ... aicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs)); /* NULL elements are ignored by gai_suspend(). */ while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } wait_reqs[n] = re ... strerror(ret)); } } /* Cancel specified requests */ static void cancel_requests(void) { char *id; int ret, n; while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } ret = gai_cancel( ... ... ts for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = strtok(NULL, " "))) { nreqs++; reqs = realloc(reqs, sizeof(reqs[0]) * nreqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs ... aicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs)); /* NULL elements are ignored by gai_suspend(). */ while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } wait_reqs[n] = re ... strerror(ret)); } } /* Cancel specified requests */ static void cancel_requests(void) { char *id; int ret, n; while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } ret = gai_cancel( ... ... ts for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = strtok(NULL, " "))) { nreqs++; reqs = realloc(reqs, sizeof(reqs[0]) * nreqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs ... aicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs)); /* NULL elements are ignored by gai_suspend(). */ while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } wait_reqs[n] = re ... strerror(ret)); } } /* Cancel specified requests */ static void cancel_requests(void) { char *id; int ret, n; while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } ret = gai_cancel( ... ... ts for specified hostnames */ static void add_requests(void) { int nreqs_base = nreqs; char *host; int ret; while ((host = strtok(NULL, " "))) { nreqs++; reqs = realloc(reqs, sizeof(reqs[0]) * nreqs); reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0])); reqs ... aicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs)); /* NULL elements are ignored by gai_suspend(). */ while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } wait_reqs[n] = re ... strerror(ret)); } } /* Cancel specified requests */ static void cancel_requests(void) { char *id; int ret, n; while ((id = strtok(NULL, " ")) != NULL) { n = atoi(id); if (n >= nreqs) { printf("Bad request number: %s\n", id); return; } ret = gai_cancel( ... ... クセスコントロールの拡張書式 ファイル /etc/hosts.allow, /etc/hosts.deny, アクセスコントロールテーブル バグ hosts_access() は strtok() ライブラリ関数を使っている。 これにより、strtok() をあてにしている他のコードと干渉が おきるかもしれない。 著者 Wietse Ve ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。