Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2017 Roberto E. Vargas Caballero |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 6 | /* |
Madhukar Pappireddy | af0cd5f | 2020-09-04 14:04:23 -0500 | [diff] [blame] | 7 | * Portions copyright (c) 2018-2020, ARM Limited and Contributors. |
Jit Loon Lim | 410c451 | 2023-05-28 16:33:28 +0800 | [diff] [blame] | 8 | * Portions copyright (c) 2023, Intel Corporation. All rights reserved. |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 9 | * All rights reserved. |
| 10 | */ |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 11 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 12 | #ifndef STRING_H |
| 13 | #define STRING_H |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 14 | |
Bence Szépkúti | 92410c9 | 2019-10-25 18:12:41 +0200 | [diff] [blame] | 15 | #include <stddef.h> |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 16 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 17 | void *memcpy(void *dst, const void *src, size_t len); |
Jit Loon Lim | 410c451 | 2023-05-28 16:33:28 +0800 | [diff] [blame] | 18 | int memcpy_s(void *dst, size_t dsize, void *src, size_t ssize); |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 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); |
Ambroise Vincent | 35248f2 | 2019-06-19 17:14:09 +0100 | [diff] [blame] | 24 | void *memrchr(const void *src, int c, size_t len); |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 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); |
Antonio Nino Diaz | 12f0a0f | 2018-10-19 00:57:10 +0100 | [diff] [blame] | 29 | char *strrchr(const char *p, int ch); |
Antonio Nino Diaz | bbf55f9 | 2018-09-27 09:22:19 +0100 | [diff] [blame] | 30 | size_t strlcpy(char * dst, const char * src, size_t dsize); |
Madhukar Pappireddy | af0cd5f | 2020-09-04 14:04:23 -0500 | [diff] [blame] | 31 | size_t strlcat(char * dst, const char * src, size_t dsize); |
Madhukar Pappireddy | d7e7be3 | 2020-09-16 18:58:49 -0500 | [diff] [blame] | 32 | char *strtok_r(char *s, const char *delim, char **last); |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 33 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 34 | #endif /* STRING_H */ |