summaryrefslogtreecommitdiff
path: root/src/libstddjb/case_upperb.c
blob: f245f4dc9d1db3c86586f8915cb4c1062aeacba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <ctype.h>

#include <skalibs/bytestr.h>

void case_upperb (char *s, size_t len)
{
  while (len--)
  {
    int c = toupper(*s) ;
    *s++ = (unsigned char)c ;
  }
}