version 1.15, 2013/11/15 22:20:04 |
version 1.16, 2013/11/20 21:22:17 |
|
|
F = (ch == 'F'); |
F = (ch == 'F'); |
/* Validate format string argument. */ |
/* Validate format string argument. */ |
for (p = optarg; *p != '\0'; p++) |
for (p = optarg; *p != '\0'; p++) |
if (!isdigit(*p) && *p != '.' && *p != '-') |
if (!isdigit((unsigned char)*p) && |
|
*p != '.' && *p != '-') |
errx(1, "%s: invalid width specified", |
errx(1, "%s: invalid width specified", |
optarg); |
optarg); |
/* '%' + width + 's' + '\0' */ |
/* '%' + width + 's' + '\0' */ |