{"author_url":"https://blog.hatena.ne.jp/rom_k/","published":"2005-10-18 00:00:02","blog_title":"coding@ease","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2From-k.hatenadiary.org%2Fentry%2F20051018%2Fp1\" title=\"getopt - coding@ease\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%","author_name":"rom_k","type":"rich","title":"getopt","blog_url":"https://rom-k.hatenadiary.org/","url":"https://rom-k.hatenadiary.org/entry/20051018/p1","categories":["coding"],"description":"\u4e00\u90e8\u4fee\u6b63@051112 \u30aa\u30d7\u30b7\u30e7\u30f3\u51e6\u7406\u95a2\u6570\u3067\u3059 C\u8a00\u8a9e\u3067\u306e\u8a71\u3057\u3067\uff0cLinux\u306eshell\u306e\u8a71\u3057\u3067\u306f\u3042\u308a\u307e\u305b\u3093 \u4f7f\u7528\u306b\u306funistd.h\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046unistd.h\u306flinux\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30d8\u30c3\u30c0@051112 \u66f8\u5f0f int getopt(int argc, char * const argv[],const char *optstring); argc \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u500b\u6570\uff0emain\u304b\u3089\u306e\u3092\u305d\u306e\u307e\u307e\u6e21\u305b\u3070\u3088\u3044 argv \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u914d\u5217\uff0e\u540c\u69d8\u306b\u305d\u306e\u307e\u307e\u3067\u3088\u3044 optstring \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u4f7f\u3046\u6587\u5b57\u3092\u4e26\u3079\u308b\uff0e\u5f15\u6570\u3092\u53d6\u308b\u5834\u5408\u306f\u76f4\u5f8c\u306b\":\"(\u30b3\u30ed\u30f3)\uff0e\u5f15\u6570\u3092\u53d6\u3089\u306a\u304f\u3066\u3082\u3088\u3044\u5834\u5408\u306f\"::\"\u3068\u3059\u2026","height":"190","version":"1.0","provider_url":"https://hatena.blog"}