version 1.19, 2015/10/09 01:37:08 |
version 1.20, 2018/07/11 11:35:06 |
|
|
P = S = F = T = 0; /* capitalized options */ |
P = S = F = T = 0; /* capitalized options */ |
while (optind < argc) { |
while (optind < argc) { |
switch (ch = getopt(argc, argv, "F:f:P:p:S:s:T:t:")) { |
switch (ch = getopt(argc, argv, "F:f:P:p:S:s:T:t:")) { |
|
case 'P': case 'p': |
|
P = (ch == 'P'); |
|
ip->pad = 1; |
|
/* FALLTHROUGH */ |
case 'F': case 'f': |
case 'F': case 'f': |
F = (ch == 'F'); |
F = (ch == 'F'); |
/* Validate format string argument. */ |
/* Validate format string argument. */ |
|
|
err(1, NULL); |
err(1, NULL); |
snprintf(p, siz, "%%%ss", optarg); |
snprintf(p, siz, "%%%ss", optarg); |
ip->format = p; |
ip->format = p; |
break; |
|
case 'P': case 'p': |
|
P = (ch == 'P'); |
|
ip->pad = 1; |
|
break; |
break; |
case 'S': case 's': |
case 'S': case 's': |
S = (ch == 'S'); |
S = (ch == 'S'); |