summaryrefslogtreecommitdiffhomepage
path: root/include/stc/ccommon.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-09-05 18:21:53 +0200
committerTyge Løvset <[email protected]>2023-09-05 18:21:53 +0200
commita0a75ac1c324ac52931c9df37ce13cb4213ab711 (patch)
tree50a495316e043a34caaaf4987c894103b0f457d1 /include/stc/ccommon.h
parent493c34e9c2de0587f38681340db8f2735e72d7dd (diff)
downloadSTC-modified-a0a75ac1c324ac52931c9df37ce13cb4213ab711.tar.gz
STC-modified-a0a75ac1c324ac52931c9df37ce13cb4213ab711.zip
Swapped two parameters in newly renamed "internal" function stc_strnstrn().
Diffstat (limited to 'include/stc/ccommon.h')
-rw-r--r--include/stc/ccommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index d074701f..80cbc5e4 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -159,8 +159,8 @@ STC_INLINE uint64_t stc_hash(const void* key, intptr_t len) {
STC_INLINE uint64_t stc_strhash(const char *str)
{ return stc_hash(str, c_strlen(str)); }
-STC_INLINE char* stc_strnstrn(const char *str, const char *needle,
- intptr_t slen, const intptr_t nlen) {
+STC_INLINE char* stc_strnstrn(const char *str, intptr_t slen,
+ const char *needle, intptr_t nlen) {
if (!nlen) return (char *)str;
if (nlen > slen) return NULL;
slen -= nlen;