# | Line 18 | Line 18 | int | |
---|---|---|
18 | badarg( /* check argument list */ | |
19 | int ac, | |
20 | char **av, | |
21 | < | char *fl |
21 | > | const char *fl |
22 | ) | |
23 | { | |
24 | int i; | |
# | Line 34 | Line 34 | char *fl | |
34 | case 's': /* string */ | |
35 | while (isspace(*s)) | |
36 | ++s; | |
37 | < | if (*s == '\0') |
38 | < | return(i); |
39 | < | while (*s) |
40 | < | if (!isascii(*s++)) |
41 | < | return(i); |
37 | > | if (!isprint(*s)) |
38 | > | return(i); |
39 | > | while (isprint(*s) | isspace(*s)) |
40 | > | ++s; |
41 | > | if (*s) |
42 | > | return(i); |
43 | break; | |
44 | case 'i': /* integer */ | |
45 | if (!isintd(s, " \t\r\n")) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |