You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
165 B
C
11 lines
165 B
C
23 years ago
|
#include "case.h"
|
||
|
|
||
|
void case_lowers(char *s) {
|
||
|
unsigned char x;
|
||
|
for (;;) {
|
||
|
if (!(x=*s)) break;
|
||
|
if ((x -= 'A') <= 'Z' - 'A') *s = x + 'a';
|
||
|
++s;
|
||
|
}
|
||
|
}
|