| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
30 バイト追加 、 2020年2月15日 (土) 08:01
編集の要約なし
==C getopt_long==
2つのdashで始まる、いわゆる長いoptionを受け付ける。
#include <&lt;unistd.h>&gt;
#define _GNU_SOURCE
#include <&lt;getopt.h>&gt;
int getopt_long(int argc, char * const argv[],
const char *optstring,
|}
#include <&lt;stdio.h>&gt; #include <&lt;unistd.h>&gt; #define _GNU_SOURCE#include <&lt;getopt.h>&gt;
int main(int argc, char *argv[])

案内メニュー