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.
|
|
|
#include "case.h"
|
|
|
|
|
|
|
|
void case_lowerb(void *S,unsigned long len) {
|
|
|
|
char* s=(char*)S;
|
|
|
|
unsigned char x;
|
|
|
|
while (len > 0) {
|
|
|
|
--len;
|
|
|
|
x = *s - 'A';
|
|
|
|
if (x <= 'Z' - 'A') *s = x + 'a';
|
|
|
|
++s;
|
|
|
|
}
|
|
|
|
}
|