No empty .Rs/.Re
[netbsd-mini2440.git] / regress / lib / libc / ssp / strncpy / strncpy.c
blobdfc005ed18bc840d77c7e89abd3a4d54ec2c73ab
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)strncpy(b, "1020202020202", len);
12 (void)printf("%*.*s\n", len, len, b);
13 return 0;