changeset 235 | 75e32cd57ef0 |
parent 234 | 17e0efbec5d0 |
child 236 | 40efc28963af |
234:17e0efbec5d0 | 235:75e32cd57ef0 |
---|---|
1 #include<stdio.h> |
1 #include<stdio.h> |
2 #include<string.h> |
2 #include<string.h> |
3 |
3 |
4 int main(int argc, char **argv) |
4 int main(int argc, char **argv) |
5 { char buf [100]; |
5 { char buf [10]; |
6 snprintf(buf, sizeof buf, argv [1]); |
6 snprintf(buf, sizeof buf, argv [1]); |
7 printf ("Input: %s \n", buf); |
7 printf ("Input: %s \n", buf); |
8 } |
8 } |