aboutsummaryrefslogtreecommitdiffstats
path: root/scanf.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2015-02-21 12:45:14 +0000
committerTomasz Kramkowski <tk@the-tk.com>2015-02-21 12:45:14 +0000
commitc3ab178996b6ee87b8358d5cfe48807789b0483d (patch)
treedf68b89e906fa8957ea38ce522c76136f4a53c2f /scanf.c
parent5881b8c79e89742a7ea6f9d1716b7e63fbe5686a (diff)
downloadc-stuff-c3ab178996b6ee87b8358d5cfe48807789b0483d.tar.gz
c-stuff-c3ab178996b6ee87b8358d5cfe48807789b0483d.tar.xz
c-stuff-c3ab178996b6ee87b8358d5cfe48807789b0483d.zip
scanf.c: style
Diffstat (limited to 'scanf.c')
-rw-r--r--scanf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scanf.c b/scanf.c
index 67fdc9b..80577f6 100644
--- a/scanf.c
+++ b/scanf.c
@@ -4,6 +4,7 @@
int main(void)
{
char *input;
+
scanf("%ms", &input);
printf("%s", input);