summaryrefslogtreecommitdiff
path: root/including_printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'including_printf.c')
-rw-r--r--including_printf.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/including_printf.c b/including_printf.c
new file mode 100644
index 0000000..ccea415
--- /dev/null
+++ b/including_printf.c
@@ -0,0 +1,20 @@
+//#include <stdio.h>
+
+
+int printf(const char *string, ...);
+
+int scanf(const char *string, ...);
+
+int main(void)
+{
+
+ char name[6];
+
+ printf("Type your first name: maximum 5 letters for no reason at all.\n");
+ scanf(" %5s", name);
+
+ printf("Thats boring\n");
+ printf("%s\n", name);
+ return 0;
+}
+