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