diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-11-27 18:50:47 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-11-27 18:50:47 +0100 |
| commit | 06851f8b984574cd1532191feca9765ea07904c0 (patch) | |
| tree | f389096a5bab95f8d4b7cd2be3595d7fac0cd45f /src/tools/fileutils.c | |
| parent | 893fc7c9402dac4bd8c1dd2cbdd42752c59012bd (diff) | |
| download | box64-06851f8b984574cd1532191feca9765ea07904c0.tar.gz box64-06851f8b984574cd1532191feca9765ea07904c0.zip | |
Added box64rc configuration file handling
Diffstat (limited to 'src/tools/fileutils.c')
| -rwxr-xr-x | src/tools/fileutils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 04905c04..d6d15568 100755 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -134,6 +134,18 @@ const char* GetTmpDir() { return "/tmp"; // meh... } +char* LowerCase(const char* s) { + if(!s) + return NULL; + char* ret = box_calloc(1, strlen(s)+1); + size_t i=0; + while(*s) { + ret[i++] = (*s>='A' && *s<='Z')?(*s-'A'+'a'):(*s); + ++s; + } + + return ret; +} #if defined(RPI) || defined(RK3399) || defined(RK3326) void sanitize_mojosetup_gtk_background() |