projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
trailing comment after #else or #endif
[unix-history]
/
usr
/
src
/
admin
/
style
/
getopt
/*
* Main/getopt(3) fragment.
*
* @(#)getopt 5.1 (Berkeley) %G%
*/
#include <sys/types.h>
#include <stdlib.h>
void usage __P((void));
main(argc, argv)
int argc;
char *argv[];
{
int ch;
while ((ch = getopt(argc, argv, "")) != EOF)
switch(ch) {
case '':
break;
case '?':
default:
usage();
}
argc -= optind;
argv += optind;
}
void
usage()
{
(void)fprintf(stderr, "usage: program:\n");
exit(1);
}