// Copyright (c) 2025, Zak Fenton // Zak Fenton's libc is licensed under the Mulan PSL v2. You can use this // software according to the terms and conditions of the Mulan PSL v2. // You may obtain a copy of Mulan PSL v2 at: // http://license.coscl.org.cn/MulanPSL2 // THIS SOFTWARE IS PROVIDED ON AN “AS IS” BASIS, WITHOUT warranties of // any kind, either express or implied, including but not limited to // non-infringement, merchantability or fit for a particular purpose. // See the Mulan PSL v2 for more details. #ifndef _LIBC_STRING_H #define _LIBC_STRING_H #include size_t strlen(const char* foo); char *strchr(const char* str, int chr); char *strrchr(const char* str, int chr); char* strcat(char* str, const char* cat); char* strcpy(char* buffer, const char* str); char* strncpy(char* buffer, const char* str, size_t n); const char* strpbrk(const char* str, const char* search); int strcmp(const char* a, const char* b); char* strdup(const char* str); char* strndup(const char* str, size_t n); void* memcpy(void* dst, const void* src, size_t nbytes); void* memset(void* mem, int byt, size_t nbytes); /* From ifndef at top of file: */ #endif