diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-08 18:26:24 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-08 18:31:48 +0200 |
commit | f4e7832656a2b27d6ae735593714aaf8ff7b6a84 (patch) | |
tree | f578bc6a77911ebd5cf02a366bd2b9447811f3f7 /sources/utils.c | |
parent | d8f2e6ba207a809799ae3e1ae4eac64f806b9c18 (diff) |
#971 add str_toupper()
Add new utils.c file and replace old StrToUpper().
Diffstat (limited to 'sources/utils.c')
-rw-r--r-- | sources/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/utils.c b/sources/utils.c new file mode 100644 index 0000000..4aa76f8 --- /dev/null +++ b/sources/utils.c @@ -0,0 +1,14 @@ +#include <ctype.h> +#include "utils.h" + +const char *str_toupper(char *str) +{ + char *c = str; + + while (*c) { + *c = toupper(*c); + c++; + } + + return str; +} |