aboutsummaryrefslogtreecommitdiffstats
path: root/scanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'scanf.c')
-rw-r--r--scanf.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/scanf.c b/scanf.c
new file mode 100644
index 0000000..80577f6
--- /dev/null
+++ b/scanf.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(void)
+{
+ char *input;
+
+ scanf("%ms", &input);
+
+ printf("%s", input);
+ free(input);
+
+ return EXIT_SUCCESS;
+}