changeset 236 | 40efc28963af |
parent 235 | 75e32cd57ef0 |
235:75e32cd57ef0 | 236:40efc28963af |
---|---|
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 [10]; |
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 } |