aboutsummaryrefslogtreecommitdiff
path: root/case_lowerb.c
blob: 829c981475da370a4b2217256c9076df3ae365d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "case.h"

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