Mercurial > hg > CbC > old > examples
view dbg.c @ 2:bf65d90b8dc8
*** empty log message ***
author | kinjo |
---|---|
date | Mon, 28 Nov 2005 13:34:57 +0900 |
parents | e59ebf6fe2b0 |
children | f03bba45ae77 |
line wrap: on
line source
extern int option(int,char**); extern void usage(); extern int printf(char*,...); extern int help; extern char* outfile; extern char* infile; void breakp(void *ret, void *env) { return; } int main(int argc,char **argv) { if(option(argc,argv)){ printf("Invalid option\n"); usage(); return 1; } if(help){ usage(); return 0; } if(infile){ printf("infile: %s\n", infile); } else{ printf("Invalid usage\n"); usage(); return 1; } if(outfile){ printf("outfile: %s\n", outfile); } return 0; }