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);