diff options
Diffstat (limited to 'dbug/example2.c')
-rw-r--r-- | dbug/example2.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dbug/example2.c b/dbug/example2.c new file mode 100644 index 00000000000..482691a8a74 --- /dev/null +++ b/dbug/example2.c @@ -0,0 +1,18 @@ + +#include <global.h> + +int debug = 0; + +main (argc, argv) +int argc; +char *argv[]; +{ + /* printf ("argv = %x\n", argv) */ + if (debug) printf ("argv[0] = %d\n", argv[0]); + /* + * Rest of program + */ +#ifdef DEBUG + printf ("== done ==\n"); +#endif +} |