summaryrefslogtreecommitdiffstats
path: root/src/examples/printf.c
diff options
context:
space:
mode:
authorFelipe Boeira <felipe.boeira@liu.se>2019-01-22 17:37:28 +0100
committerFelipe Boeira <felipe.boeira@liu.se>2019-01-22 17:37:28 +0100
commitefc06d038b98a2887306ebbce058361e43a68e77 (patch)
treee55012a7d183872c54832860db1e1a0006fea23a /src/examples/printf.c
parent54f498fe4fb918ee7b40786b7599803bc9e7445a (diff)
downloadpintos-efc06d038b98a2887306ebbce058361e43a68e77.tar.gz
Added files for the GDB lab 0 exercise
Diffstat (limited to 'src/examples/printf.c')
-rw-r--r--src/examples/printf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/examples/printf.c b/src/examples/printf.c
new file mode 100644
index 0000000..2072e8e
--- /dev/null
+++ b/src/examples/printf.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (int argc, char **argv)
+{
+ printf ("You got it, use your debugging skills during the labs!\n");
+
+ return EXIT_SUCCESS;
+}