aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/string.c
blob: 1a05e0cd8c269dbc3ff99a993ebe380cbeadc375 (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; 
}