亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? subgetopt.3

?? linux下qmail的源碼 本人加了一些注釋
?? 3
字號:
.TH subgetopt 3.SH NAMEsubgetopt \- get option character from command line.SH SYNTAX.B #include <subgetopt.h>char *\fBsgoptarg\fP;.brint \fBsgoptind\fP;.brint \fBsgoptpos\fP;.brint \fBsgoptdone\fP;.brint \fBsgoptproblem\fP;int \fBsgopt(\fP\fIargc,argv,opts\fR\fB)\fP;int \fIargc\fR;.brchar **\fIargv\fR;.brchar *\fIopts\fR;.SH DESCRIPTION.B sgoptreturns the next valid command-line option characterfrom.IR argv .Valid option characters are listed in the.I optsstring..I optsmay be empty.A character in.I optsmay be followed by a colon,in which case ittakes an.I option argument\fR.Avoid using the characters ?, :, and \- as option characters.Below.I option argumentis abbreviatedas.I optargand.I command-line argumentis abbreviated as.IR cmdarg .Options are listed in cmdargs which begin witha minus sign.Several options which do not take optargs may be combinedinto one cmdarg.An option which takes an optarg may be handled in two ways.If it appears at the very end of a cmdarg,then the entire next cmdarg is the optarg.But if there are any characters in the cmdargafter the option character,then those characters form the optarg.The optarg is returned in.BR sgoptarg .Next time.B sgoptlooks at the cmdarg which follows the optarg.If a cmdarg does not begin with a hyphen,or if it is a lone hyphen not followed by any characters,or if it begins with two hyphens,then it terminates option processing,and.B sgoptreturns an appropriate code.If there are two hyphens,.B sgoptwill advance attention to the next cmdarg,so it can be called again to read further options..SH "PROPER USAGE".B sgoptproblemshould be used only when.B sgoptreturns ?..B sgoptindand.B sgoptposare defined all the time..B sgoptargis defined all the time;it is null unless.B sgopthas just returned an option with optarg..B sgoptis typically used as follows..EX#include <subgetopt.h>main(argc,argv) int argc; char **argv; { int opt;while ((opt = sgopt(argc,argv,"a:s")) != sgoptdone).br  switch(opt) {.br    case 'a':.br      printf("opt a with optarg %s\\n",sgoptarg); break;.br    case 's':.br      printf("opt s with no optarg\\n"); break;.br    case '?':.br      if (argv[sgoptind] && (sgoptind < argc)).br        printf("illegal opt %c\\n",sgoptproblem);.br      else.br        printf("missing arg, opt %c\\n",sgoptproblem);.br      exit(1);.br  }argv += sgoptind;.brwhile (*argv) printf("argument %s\\n",*argv++);.brexit(0);.br}.EEThe end of the command line ismarked by either.IR argc ,or a null pointer in.IR argv ,whichever comes first.Normallythese two markers coincide,so it is redundantto test forboth.I argv\fB[sgoptind]and.B sgoptind < \fIargc\fR.The above code shows both tests as an illustration..B Multiple option sets:One useful technique is to call.B sgoptwith a primary.I optsuntil it returns EOF,then call.B sgoptwith a secondary.I optsuntil it returns EOF.The user can provide primary options, then a double hyphen,and then secondary options.No special handling is needed if some or all of the options areomitted.The same technique can be used for any number of option setsin series..B Multiple command lines:Before parsing a new.BR argv ,make sure toset.B sgoptindand.B sgoptposback to1 and 0..SH "PARSING STAGES".B sgoptkeeps track of its position in.I argvwith.B sgoptindand.BR sgoptpos ,which are initialized to 1 and 0.It looks at.I argv\fB[sgoptind][sgoptpos]and following characters..B sgoptindicatesthat no more options are available byreturning.BR sgoptdone ,which is initialized to.BR SUBGETOPTDONE ,which is defined as \-1..B sgoptbegins by setting.B optargto null..B Ending conditions:If.I argvis null, or.B sgoptindis larger than.IR argc ,or the current cmdarg.I argv\fB[sgoptind]is null,then.B sgoptreturns.BR optdone ..B Stage one:If the current characteris zero,.B sgoptmoves to the beginning of the next cmdarg.It then checks the ending conditions again..B Stage two:Ifthe current position is the begining of the cmdarg,.B sgoptchecks whetherthe current characteris a minus sign.If not it returns.BR optdone .It thenmovesto the next character.If that character is zero,.B sgoptmovesback to the beginning of the cmdarg,and returns.BR sgoptdone .If the character is a minus sign,.B sgoptmoves to the beginning of the next cmdarg,and returns.BR sgoptdone ..B Stage three:.B sgoptrecords the current character,.IR c ,and moves to the next character.There are three possibilities:(1).I cis an option character without optarg in.IR opts ,or(2).I cis an option character with optarg in.IR opts ,or(3).I cdoes not appear in.IR opts .(1)If.I cappears as an option character without optarg in.IR opts ,.B sgoptreturns.IR c .(2)If.I cappears as an option character with optarg in.IR opts ,.B sgoptsets.B sgoptargto the current position,and moves to the next cmdarg.If.B sgoptargis nonempty,.B sgoptreturns.IR c .Then.B sgoptsets.B sgoptargtothe current cmdarg.Ifthe current cmdarg is null,or past.IR argc ,.B sgoptsets.B sgoptproblemto.I cand returns ?.Otherwise.B sgoptmoves to the nextargumentand returns.IR c .(2)If.I cdoes not appear in.IR opts ,.B sgoptsets.B sgoptproblemto.I cand returns ?..SH "SYNTAX NOTE".B sgoptis actually a macro abbreviation for.BR subgetopt .The external.B sgvariables are also macrosfor.BR subget .These macros are defined in.BR <subgetopt.h> ,unless.B SUBGETOPTNOSHORTis definedwhen.B <subgetopt.h>is included..SH VERSIONsubgetopt version 0.9, 931129..SH AUTHORPlaced into the public domain by Daniel J. Bernstein.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码精品一区二区三区五月婷| 久久亚洲免费视频| 亚洲欧洲综合另类| 成人h版在线观看| 2欧美一区二区三区在线观看视频| 日韩二区三区四区| 91精品国产品国语在线不卡| 国产日产欧美一区二区视频| 国产成人av一区二区三区在线 | 国产一区二区三区综合| 91.麻豆视频| 日韩国产欧美三级| 日韩一级黄色大片| 久久精品理论片| 久久久久99精品一区| 国产精品自拍毛片| 国产精品麻豆视频| 亚洲一区二区三区激情| 国产一区久久久| 精品精品欲导航| 国产成人在线视频网址| 国产精品乱码久久久久久| www.一区二区| 日韩精品一二三区| 国产情人综合久久777777| 91麻豆精东视频| 另类小说综合欧美亚洲| 成人免费小视频| 91精品久久久久久蜜臀| 懂色av中文一区二区三区| 亚洲夂夂婷婷色拍ww47| 久久影院电视剧免费观看| 欧美亚洲动漫另类| 激情国产一区二区| 亚洲国产精品视频| 久久精品一区二区| 欧美日韩一区二区三区四区| 国产在线精品一区二区三区不卡 | 色综合色综合色综合| 日韩有码一区二区三区| 中文字幕制服丝袜一区二区三区 | 日韩视频一区二区| 91亚洲午夜精品久久久久久| 青青草一区二区三区| 亚洲精品国产一区二区精华液| 日韩欧美一级二级三级| 欧美视频一二三区| av电影天堂一区二区在线| 麻豆91在线观看| 亚洲国产精品久久久久婷婷884 | 午夜欧美大尺度福利影院在线看| 国产欧美精品一区二区三区四区| 日韩一区二区三区av| 91久久精品国产91性色tv| 成人一区在线看| 精品一区二区三区久久久| 五月激情丁香一区二区三区| 亚洲激情网站免费观看| 亚洲人成精品久久久久久| 亚洲国产高清在线| 精品国产免费人成电影在线观看四季| 7777精品伊人久久久大香线蕉完整版 | 久久激情综合网| 视频在线观看一区| 亚洲一区欧美一区| 亚洲人成7777| 亚洲色图欧美偷拍| 中文字幕佐山爱一区二区免费| 中文字幕二三区不卡| 国产亚洲精久久久久久| 久久免费看少妇高潮| 久久婷婷国产综合国色天香| 精品国产99国产精品| 日韩欧美色综合网站| 欧美一二三区在线| 日韩欧美卡一卡二| 久久蜜桃av一区精品变态类天堂| 久久亚洲影视婷婷| 欧美激情中文不卡| 国产精品国产馆在线真实露脸| 国产欧美一区二区精品婷婷| 国产色一区二区| 亚洲国产精品成人综合色在线婷婷 | 久久噜噜亚洲综合| 国产欧美日韩另类视频免费观看| 国产日韩精品一区二区浪潮av| 国产日韩精品一区二区浪潮av| 欧美激情自拍偷拍| 亚洲视频在线观看一区| 亚洲一二三四久久| 日本aⅴ免费视频一区二区三区| 日韩av午夜在线观看| 美女精品自拍一二三四| 国产精品中文有码| 99免费精品视频| 欧美中文字幕亚洲一区二区va在线 | 日本中文字幕一区二区有限公司| 麻豆精品精品国产自在97香蕉| 国产aⅴ综合色| 色猫猫国产区一区二在线视频| 欧美日韩一区二区三区四区五区| 日韩一级高清毛片| 国产精品国产三级国产aⅴ入口| 亚洲综合色网站| 麻豆高清免费国产一区| voyeur盗摄精品| 欧美精选一区二区| 精品国产乱码久久久久久夜甘婷婷| 欧美经典一区二区| 亚洲国产视频a| 国产老妇另类xxxxx| 在线一区二区三区四区| 精品日韩一区二区三区| 亚洲免费观看高清完整版在线观看熊 | 免费久久99精品国产| 成人av免费在线观看| 欧美少妇一区二区| 国产视频911| 午夜精品福利视频网站| 成人免费高清视频| 91精品在线麻豆| 亚洲婷婷综合色高清在线| 六月丁香综合在线视频| 色综合中文综合网| 国产精品久久久久久久久快鸭| 一区二区免费在线| 国产精品羞羞答答xxdd| 777色狠狠一区二区三区| 国产精品久久久久久久久晋中| 美腿丝袜亚洲色图| 欧美三级中文字幕在线观看| 中文字幕第一区二区| 美女视频网站久久| 欧美系列一区二区| 国产精品成人一区二区三区夜夜夜| 日本欧洲一区二区| 在线视频一区二区三| 欧美高清在线一区二区| 久久99这里只有精品| 欧美日韩你懂得| 亚洲色图.com| 岛国av在线一区| 精品动漫一区二区三区在线观看| 午夜影院久久久| 欧美最猛性xxxxx直播| 中文字幕欧美一区| 懂色一区二区三区免费观看| 久久久亚洲综合| 激情欧美一区二区| 精品国产一区久久| 久久精品国产99国产精品| 欧美日本精品一区二区三区| 一区二区理论电影在线观看| 成人免费看的视频| 国产婷婷精品av在线| 国产乱子轮精品视频| 欧美成人性战久久| 久热成人在线视频| 欧美成人伊人久久综合网| 蜜臀va亚洲va欧美va天堂| 欧美一卡在线观看| 日韩av不卡一区二区| 日韩亚洲欧美在线| 久久精工是国产品牌吗| 欧美videossexotv100| 精品无码三级在线观看视频| 欧美xxx久久| 国产精品一卡二卡在线观看| 欧美xxxxx牲另类人与| 国产一区二区三区四| 国产视频一区在线播放| 懂色av一区二区夜夜嗨| 国产精品美女久久久久久久久久久 | 日韩精品一区二区三区蜜臀 | 激情文学综合插| 久久综合狠狠综合| 国产精品一区不卡| 中文字幕亚洲区| 色94色欧美sute亚洲线路二| 亚洲午夜精品一区二区三区他趣| 欧美日韩中文字幕一区| 日韩精品视频网站| 欧美刺激脚交jootjob| 成人在线视频一区二区| 亚洲免费高清视频在线| 777亚洲妇女| 国产成人在线免费| 一区在线中文字幕| 欧美日韩国产123区| 六月婷婷色综合| 国产精品白丝在线| 欧美日韩成人在线| 国产一区二区三区高清播放| 中文一区二区完整视频在线观看| 91精品91久久久中77777| 美洲天堂一区二卡三卡四卡视频| 久久久精品免费网站| 色综合久久88色综合天天免费| 视频在线观看一区| 国产精品视频观看|