1 /* 2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 /* 7 * Portions copyright (c) 2018-2020, Arm Limited and Contributors. 8 * Portions copyright (c) 2023, Intel Corporation. All rights reserved. 9 * All rights reserved. 10 */ 11 12 #ifndef STRING_H 13 #define STRING_H 14 15 #include <stddef.h> 16 17 void *memcpy(void *dst, const void *src, size_t len); 18 int memcpy_s(void *dst, size_t dsize, void *src, size_t ssize); 19 void *memmove(void *dst, const void *src, size_t len); 20 int memcmp(const void *s1, const void *s2, size_t len); 21 int strcmp(const char *s1, const char *s2); 22 int strncmp(const char *s1, const char *s2, size_t n); 23 void *memchr(const void *src, int c, size_t len); 24 void *memrchr(const void *src, int c, size_t len); 25 char *strchr(const char *s, int c); 26 void *memset(void *dst, int val, size_t count); 27 size_t strlen(const char *s); 28 size_t strnlen(const char *s, size_t maxlen); 29 char *strrchr(const char *p, int ch); 30 size_t strlcpy(char * dst, const char * src, size_t dsize); 31 size_t strlcat(char * dst, const char * src, size_t dsize); 32 char *strtok_r(char *s, const char *delim, char **last); 33 34 #endif /* STRING_H */ 35