diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-07-20 20:07:44 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-07-20 20:07:44 +0000 |
commit | a2bef0ab0526177bdb957f68ee03e4fcf45b600c (patch) | |
tree | b7db257b7fa73579ba83df28d23074616719f4c4 | |
parent | abdab6a1ba5d55302f8153944c39f6afea6b3a7a (diff) | |
download | netpbm-mirror-a2bef0ab0526177bdb957f68ee03e4fcf45b600c.tar.gz netpbm-mirror-a2bef0ab0526177bdb957f68ee03e4fcf45b600c.tar.xz netpbm-mirror-a2bef0ab0526177bdb957f68ee03e4fcf45b600c.zip |
Improve comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@684 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | lib/util/shhopt.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/shhopt.h b/lib/util/shhopt.h index ad0d2efc..e5f05b90 100644 --- a/lib/util/shhopt.h +++ b/lib/util/shhopt.h @@ -6,6 +6,8 @@ HERE IS AN EXAMPLE OF THE USE OF SHHOPT: int main ( int argc, char **argv ) { + // initial values here are just to demonstrate what gets set and + // what doesn't by the code below. int help_flag = 7; unsigned int help_spec =7; unsigned int height_spec =7; @@ -186,7 +188,8 @@ typedef struct { /* OPTENT3 is the same as OPTENTRY except that it also sets the "specified" element of the table entry (so it assumes OPTION_DEF is a table of - optEntry instead of optStruct). + optEntry instead of optStruct). It sets it to the number of times that + the option appears in the command line. Here is an example: |