aboutsummaryrefslogtreecommitdiff
path: root/sys/base/string/upper.c
blob: ab692c1dabd0d5e746736bca9847ab0c77c621b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "internal.h"

// Upper will force all runes in the string to be uppercase.
void
str·upper(string s)
{
    byte *b, *e;
    b = s;
    e = b + str·len(s);
    while (b++ != e) 
        *b = toupper(*b);
}