JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... rgc , char * const argv[] , const char * optstring ); extern char * optarg ; extern int optind , opterr , optopt ; #include < getopt.h > int getopt_long(int argc , char * const argv[] , const char ... 目している argv 要素で、オプション文字に引き続くテキストへのポインターか、 あるいは次の argv 要素のテキストへのポインターを optarg に代入する。 2 個連続してコロンが置かれている場合は、 そのオプションは引数をとってもとらなくてもよい。 現在の argv 要素にテ ... キストがあれば (つまり、"-oarg" のように、オプション名自身と同じワード内に テキストがある場合)、それが optarg に返される。 なければ optarg は 0 に設定される。 これは GNU による拡張である。 optstring に W とそれに続くセミコロンが入っ ... ... ; inheritsched_str = NULL; while ((opt = getopt(argc, argv, "a:Ai:m:")) != -1) { switch (opt) { case 'a': attr_sched_str = optarg; break; case 'A': use_null_attrib = 1; break; case 'i': inheritsched_str = optarg; break; case 'm': main_sched_str = optar ... ... ; inheritsched_str = NULL; while ((opt = getopt(argc, argv, "a:Ai:m:")) != -1) { switch (opt) { case 'a': attr_sched_str = optarg; break; case 'A': use_null_attrib = 1; break; case 'i': inheritsched_str = optarg; break; case 'm': main_sched_str = optar ... ... = getopt(argc, argv, "ag:s:")) != -1) { switch (opt) { case 'a': allocate_stack = 1; break; case 'g': guard_size = strtoul(optarg, NULL, 0); break; case 's': stack_size = strtoul(optarg, NULL, 0); break; default: usage(argv[0], NULL); } } if (allocate_ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。