Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2017 Roberto E. Vargas Caballero |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | /* |
Bence Szépkúti | 5913030 | 2019-12-18 17:18:16 +0100 | [diff] [blame] | 7 | * Portions copyright (c) 2018-2019, ARM Limited and Contributors. |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 8 | * All rights reserved. |
| 9 | */ |
| 10 | |
| 11 | #ifndef STRING_H |
| 12 | #define STRING_H |
| 13 | |
Bence Szépkúti | 5913030 | 2019-12-18 17:18:16 +0100 | [diff] [blame] | 14 | #include <stddef.h> |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 15 | |
| 16 | void *memcpy(void *dst, const void *src, size_t len); |
| 17 | void *memmove(void *dst, const void *src, size_t len); |
| 18 | int memcmp(const void *s1, const void *s2, size_t len); |
| 19 | int strcmp(const char *s1, const char *s2); |
| 20 | int strncmp(const char *s1, const char *s2, size_t n); |
| 21 | void *memchr(const void *src, int c, size_t len); |
| 22 | char *strchr(const char *s, int c); |
| 23 | void *memset(void *dst, int val, size_t count); |
| 24 | size_t strlen(const char *s); |
| 25 | size_t strnlen(const char *s, size_t maxlen); |
| 26 | char *strrchr(const char *p, int ch); |
| 27 | size_t strlcpy(char * dst, const char * src, size_t dsize); |
Ambroise Vincent | 8a573de | 2019-02-11 13:54:30 +0000 | [diff] [blame] | 28 | char *strncpy(char *dst, const char *src, size_t n); |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 29 | |
| 30 | #endif /* STRING_H */ |