From a0a75ac1c324ac52931c9df37ce13cb4213ab711 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 5 Sep 2023 18:21:53 +0200 Subject: Swapped two parameters in newly renamed "internal" function stc_strnstrn(). --- include/stc/ccommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stc/ccommon.h') 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; -- cgit v1.2.3