From 7649b44aabd7dacd07abcddbb8afc9a61447a016 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 12 Mar 2023 10:27:07 +0100 Subject: [PATCH] libc: Add declaration for strrchr (already implemented) --- libc/include/string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/include/string.h b/libc/include/string.h index 37a0f299..feed91a8 100644 --- a/libc/include/string.h +++ b/libc/include/string.h @@ -38,6 +38,9 @@ extern "C" /* Return a pointer to the first occurrence of the character c in str, or NULL if it could not be found. */ char* strchr(const char* str, int c); + /* Return a pointer to the last occurrence of the character c in str, or NULL if it could not be found. */ + char* strrchr(const char* str, int c); + /* Return a heap-allocated copy of a string. */ char* strdup(const char* str);