From f4e7832656a2b27d6ae735593714aaf8ff7b6a84 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Mon, 8 Jun 2020 18:26:24 +0200 Subject: #971 add str_toupper() Add new utils.c file and replace old StrToUpper(). --- sources/utils.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sources/utils.c (limited to 'sources/utils.c') 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 +#include "utils.h" + +const char *str_toupper(char *str) +{ + char *c = str; + + while (*c) { + *c = toupper(*c); + c++; + } + + return str; +} -- cgit v1.2.3-18-g5258