- Timestamp:
- 10/14/08 18:42:00 (1 month ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/user/posix/opt/opt.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/user/posix/opt/opt.c
r910 r1122 4 4 5 5 char* optarg; 6 7 #define OPT_PERMUTE 0x01 8 9 int getopt_internal(int argc, char* const argv[], const char* optstring, 10 const struct option* longopts, int* longindex, int flags) 11 { 12 printf("getopt_internal(%d)", argc); 13 exit(0); 14 } 6 15 7 16 int getopt(int argc, char* const argv[], const char* optstring) … … 11 20 } 12 21 13 int getopt_long(int argc, char* const argv[], const char* optstring, const struct option* longopts, int* longindex) 22 int getopt_long(int argc, char* const argv[], const char* optstring, 23 const struct option* longopts, int* longindex) 14 24 { 15 printf("getopt_long\n"); 16 return -1; 25 return getopt_internal(argc, argv, optstring, longopts, longindex, OPT_PERMUTE); 17 26 } 18 27
