1 /* 2 * Copyright (c) 2025, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef STRING_PRIVATE_H 8 #define STRING_PRIVATE_H 9 10 /* Do not include outside of the libc. Use string.h instead. */ 11 12 #include <stddef.h> 13 14 int memcmp(const void *s1, const void *s2, size_t len); 15 int strcmp(const char *s1, const char *s2); 16 int strncmp(const char *s1, const char *s2, size_t n); 17 void *memchr(const void *src, int c, size_t len); 18 char *strchr(const char *s, int c); 19 void *memset(void *dst, int val, size_t count); 20 size_t strlen(const char *s); 21 char *strrchr(const char *p, int ch); 22 23 #endif /* STRING_PRIVATE_H */ 24