aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/string.c
blob: 291f11036177893c52b896f696e0992c5c5f31fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <ctype.h>
#include <string.h>

char* strupr(char* s) {
    char* d;
    for (d = s; *d; ++d)
        *d = (char)toupper((int)*d);
    return s;
}

char* strlwr(char* s) {
    char* d;
    for (d = s; *d; ++d)
        *d = (char)tolower((int)*d);
    return s;
}