diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2015-02-21 12:37:48 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2015-02-21 12:37:48 +0000 |
commit | 2e33bf65621b6ae22e88dae6e1053a6f59786172 (patch) | |
tree | 7561af54f94c7c0b74e227eccec38767fad7ebef | |
parent | 35e4f1939645be6673cad3b49290c91946cad599 (diff) | |
download | c-stuff-2e33bf65621b6ae22e88dae6e1053a6f59786172.tar.gz c-stuff-2e33bf65621b6ae22e88dae6e1053a6f59786172.tar.xz c-stuff-2e33bf65621b6ae22e88dae6e1053a6f59786172.zip |
scanf.c
-rw-r--r-- | scanf.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; +} |