Source

linux-scalability-benchmarks / libowfat / case / case_lowerb.c

The default branch has multiple heads

#include "case.h"

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