From 2e33bf65621b6ae22e88dae6e1053a6f59786172 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 21 Feb 2015 12:37:48 +0000 Subject: scanf.c --- scanf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scanf.c (limited to 'scanf.c') 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 +#include + +int main(void) +{ + char *input; + scanf("%ms", &input); + + printf("%s", input); + free(input); + + return EXIT_SUCCESS; +} -- cgit v1.2.3-54-g00ecf