Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git] / regress / lib / libc / ssp / strncat / strncat.c
blobb7f20e861c4672ea946c74c90969767b41f66672
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
5 int
6 main(int argc, char *argv[])
8 char b[10];
9 int len = atoi(argv[1]);
10 (void)strcpy(b, "1");
11 (void)strncat(b, "1020202020202", len);
13 (void)printf("%*.*s\n", len, len, b);
14 return 0;