aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/string.h2
-rw-r--r--src/string/strspn.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h
index 30131de..483b49b 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1016,7 +1016,7 @@ size_t strcspn(const char*, const char*)
* `string` of a byte found in `stopset`.
* `NULL` is returned if none is found.
*/
-char* stpbrk(const char*, const char*)
+char* strpbrk(const char*, const char*)
__GCC_ONLY(__attribute__((warn_unused_result, nonnull, pure)));
diff --git a/src/string/strspn.c b/src/string/strspn.c
index 3facfd8..f8d1dac 100644
--- a/src/string/strspn.c
+++ b/src/string/strspn.c
@@ -82,7 +82,7 @@ size_t strcspn(const char* string, const char* stopset)
* `string` of a byte found in `stopset`.
* `NULL` is returned if none is found.
*/
-char* stpbrk(const char* string, const char* stopset)
+char* strpbrk(const char* string, const char* stopset)
{
char set[256];
char c;