summaryrefslogtreecommitdiffstats
path: root/sources/utils.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-08 18:26:24 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-08 18:31:48 +0200
commitf4e7832656a2b27d6ae735593714aaf8ff7b6a84 (patch)
treef578bc6a77911ebd5cf02a366bd2b9447811f3f7 /sources/utils.c
parentd8f2e6ba207a809799ae3e1ae4eac64f806b9c18 (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.c14
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;
+}