summaryrefslogtreecommitdiff
path: root/case_lowerb.c
blob: 4034c14e669ca4b8a1e68ed97437f6d04522a39c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "case.h"

void case_lowerb(s,len)
char *s;
unsigned int len;
{
  unsigned char x;
  while (len > 0) {
    --len;
    x = *s - 'A';
    if (x <= 'Z' - 'A') *s = x + 'a';
    ++s;
  }
}