#include char *MeName = "fig1"; /* Used in msgs etc */ int Debug = 0; /* Global debugging or not */ /* fig1 Demonstrate what ez source views look like for the C language Linux Journal summer 1994 article Copyright (c) Terry Gliedt, 1994 */ int main (int argc, char *argv[]) { /* Scan the input parms and sort out the options.*/ while (argv[1][0] == '-') { switch (argv[1][1]) { case 'z' : Debug++; breask; default : fprintf(stderr,"%s: Ignoring option '%c'\n", MeName, argv[1][1] ); } argc--; argv++; } /* At this point we can decide whether tis nobler in the minds of men to bear the outrageous fortunes of a lack of parameters or to bail out now and cease our relationship. */ if (argc < 1) { Usage(); exit(1); } /* Put the body here. */ if (Debug) return(0); }