about summary refs log tree commit diff
path: root/src/libstddjb/case_uppers.c
blob: 4191711643106a95d0e25892a8cca1bf625b2c5e (plain) (blame)
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_uppers (char *s)
{
  while (*s)
  {
    int c = toupper(*s) ;
    *s++ = (unsigned char)c ;
  }
}