version 1.74, 2015/01/30 04:45:45 |
version 1.75, 2015/10/18 03:04:11 |
|
|
if (mflag && confirm(argv[0], cp)) { |
if (mflag && confirm(argv[0], cp)) { |
tp = cp; |
tp = cp; |
if (mcase) { |
if (mcase) { |
while (*tp && !islower(*tp)) { |
while (*tp && !islower((unsigned char)*tp)) { |
tp++; |
tp++; |
} |
} |
if (!*tp) { |
if (!*tp) { |
tp = cp; |
tp = cp; |
tp2 = tmpbuf; |
tp2 = tmpbuf; |
while ((*tp2 = *tp) != '\0') { |
while ((*tp2 = *tp) != '\0') { |
if (isupper(*tp2)) { |
if (isupper((unsigned char)*tp2)) { |
*tp2 = |
*tp2 = |
tolower(*tp2); |
tolower((unsigned char)*tp2); |
} |
} |
tp++; |
tp++; |
tp2++; |
tp2++; |