aboutsummaryrefslogtreecommitdiff
path: root/src/extString.c
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-05-28 20:01:57 +0200
committeraxtloss <axtlos@getcryst.al>2024-05-28 20:01:57 +0200
commitff0328765c04614701bbfe793bb228cd63f1b2fc (patch)
treeeaec361a71a2cb4d09e178e9574c260f5da58417 /src/extString.c
parent85e5469362db3c3fb89f7dc3fbe1eb1431fb2fcc (diff)
downloadautodarkmode-ff0328765c04614701bbfe793bb228cd63f1b2fc.tar.gz
autodarkmode-ff0328765c04614701bbfe793bb228cd63f1b2fc.tar.bz2
add readme and fix some warnings
Diffstat (limited to 'src/extString.c')
-rw-r--r--src/extString.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/extString.c b/src/extString.c
index b32b380..e7ebeaa 100644
--- a/src/extString.c
+++ b/src/extString.c
@@ -21,7 +21,7 @@
#include <string.h>
#include <ctype.h>
-char *strlwr(char *s)
+const char *strlwr(const char *s)
{
unsigned char *p = (unsigned char *)s;
@@ -33,7 +33,7 @@ char *strlwr(char *s)
return s;
}
-char *trim(char *s)
+char *trim(const char *s)
{
char *result = strdup(s);
char *end;
@@ -51,7 +51,7 @@ char *trim(char *s)
return result;
}
-char *replaceStr(char *s, char *old, char *replace) {
+char *replaceStr(const char *s, const char *old, const char *replace) {
char* result;
int i, cnt = 0;
size_t newSize = strlen(replace);