aboutsummaryrefslogtreecommitdiff
path: root/src/str.c
diff options
context:
space:
mode:
authorSoikk2022-05-14 14:06:19 +0200
committerSoikk2022-05-14 14:06:19 +0200
commitb4cbd484955ec54bdc66ff0a5108707c029810f9 (patch)
treeb30678cfe0c3988b6e66497e84818ca100215e73 /src/str.c
parent58f3ce95b6d9da5418b7ed8613f35b1089a3446a (diff)
parent1b7112cd1a6ebbd47a2220dc779e8924b9ffa9cc (diff)
downloadsoikk-DB-b4cbd484955ec54bdc66ff0a5108707c029810f9.tar.xz
soikk-DB-b4cbd484955ec54bdc66ff0a5108707c029810f9.tar.zst
Merge branch 'master' of https://github.com/Soikk/DB
Diffstat (limited to 'src/str.c')
-rw-r--r--src/str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/str.c b/src/str.c
index 9cf5685..ef2edad 100644
--- a/src/str.c
+++ b/src/str.c
@@ -9,7 +9,7 @@ uint16_t len(const char *s){
bool sameStr(const char *s1, const char *s2){
uint16_t i1 = 0, i2 = 0;
- while(s1[i1] && s2[i2] && s1[i1] == s2[i2])
+ while(s1[i1] && s1[i1] == s2[i2])
++i1, ++i2;
return !s1[i1] && !s2[i2];
}
@@ -56,4 +56,4 @@ ssize_t strInTags(const char *tags, int n, const char *ndl, int m, char sep){
}
}
return -1;
-} \ No newline at end of file
+}