zoukankan      html  css  js  c++  java
  • getopt() getopt_long()函数手册[中文翻译]

    getopt()函数

    getopt_long函数

    函数原型(function prototype)

           #include <unistd.h>
    
           int getopt(int argc, 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 *optstring,
                      const struct option *longopts, int *longindex);
    
           int getopt_long_only(int argc, char * const argv[],
                      const char *optstring,
                      const struct option *longopts, int *longindex);
    
    

    功能说明

    参数说明

  • 相关阅读:
    PS封装ES流
    win7无法删除文件夹,提示“找不到该项目”
    声明
    ZR#1005
    ZR#1004
    ZR#1009
    ZR#1008
    ZR#1015
    ZR#1012
    ZR#985
  • 原文地址:https://www.cnblogs.com/xfiver/p/4510782.html
Copyright © 2011-2022 走看看