process the options for command
2007-08-16 19:42
176 查看
/session: things about the command process their options.
similar method used as process the options for command:
cat.c c = getopt(argc, argv, "usvtebn")
ls.c c = getopt(argc, argv, "aAbcCdeEfFghHilLmnopqrRsStux1@vV")
mkdir.c c = getopt(argc, argv, "m:p")
Take cat.c as an example:
"usvtebn" flags are used, accordingly several global static variable used:
static int silent = 0; /* s flag */
static int visi_mode = 0; /* v flag */
static int visi_tab = 0; /* t flag */
static int visi_newline = 0; /* e flag */
static int bflg = 0; /* b flag */
static int nflg = 0; /* n flag */
similar method used as process the options for command:
cat.c c = getopt(argc, argv, "usvtebn")
ls.c c = getopt(argc, argv, "aAbcCdeEfFghHilLmnopqrRsStux1@vV")
mkdir.c c = getopt(argc, argv, "m:p")
Take cat.c as an example:
"usvtebn" flags are used, accordingly several global static variable used:
static int silent = 0; /* s flag */
static int visi_mode = 0; /* v flag */
static int visi_tab = 0; /* t flag */
static int visi_newline = 0; /* e flag */
static int bflg = 0; /* b flag */
static int nflg = 0; /* n flag */
相关文章推荐
- dbca silent responseFile Not all required options provided for the command "createDatabase".Please r
- 报错:failed to get the task for process XXX(解决方案)
- WSDL.EXE Error: Not enough storage is avaliable to process the command.
- failed to get the task for process XXX(解决方案)
- win7中IIS7.0 调试出现错误 The IIS worker process for the launched URL is not currently running的解决办法
- Debugging Applications for Microsoft .NET and Microsoft Windows: Notes-The Debugging Process
- 真机调试出现Could not launch "FeedMeWorms" failed to get the task for process 3118
- Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPL
- process launch failed: failed to get the task for process 28107
- failed to get the task for process 1363问题解决
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLA
- a process for error 27 "can not lock the driver"
- Java command line options for JVM performance tuning
- whereis - locate the binary, source, and manual page files for a command
- Error launching remote program: failed to get the task for process
- 4.2.3.1. Using Options on the Command Line
- Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict
- Job for vsftpd.service failed because the control process exited with error code
- optparse — Parser for command line options -- 网站