summaryrefslogtreecommitdiffstats
path: root/dbug/example2.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbug/example2.c')
-rw-r--r--dbug/example2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/dbug/example2.c b/dbug/example2.c
new file mode 100644
index 00000000..75fc1321
--- /dev/null
+++ b/dbug/example2.c
@@ -0,0 +1,15 @@
+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
+}