Changeset 1364 for trunk/gsdl/src/mgpp/lib/getopt.cpp
- Timestamp:
- 2000-08-07T13:50:43+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/lib/getopt.cpp
r855 r1364 171 171 172 172 static char * 173 my_index (str, chr) 174 const char *str; 175 int chr; 173 my_index (const char *str, int chr) 176 174 { 177 175 while (*str) … … 217 215 218 216 static void 219 exchange (argv) 220 char **argv; 217 exchange (char **argv) 221 218 { 222 219 int bottom = first_nonopt; … … 330 327 331 328 int 332 _getopt_internal (argc, argv, optstring, longopts, longind, long_only) 333 int argc; 334 char *const *argv; 335 const char *optstring; 336 const struct option *longopts; 337 int *longind; 338 int long_only; 329 _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) 339 330 { 340 331 int option_index; … … 664 655 665 656 int 666 getopt (argc, argv, optstring) 667 int argc; 668 char *const *argv; 669 const char *optstring; 657 getopt (int argc, char *const *argv, const char *optstring) 670 658 { 671 659 return _getopt_internal (argc, argv, optstring, … … 684 672 685 673 int 686 main (argc, argv) 687 int argc; 688 char **argv; 674 main (int argc, char **argv) 689 675 { 690 676 int c;
Note:
See TracChangeset
for help on using the changeset viewer.