aboutsummaryrefslogtreecommitdiff
path: root/src/base/string/upper.c
blob: 2110974b6e0ea0e072c21b6ebeb6158b2d9d03ab (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
string·upper(string s)
{
    byte *b, *e;
    b = s;
    e = b + string·len(s);
    while (b++ != e) 
        *b = toupper(*b);
}