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 | /* |
| 7 | * Portions copyright (c) 2018, ARM Limited and Contributors. |
| 8 | * All rights reserved. |
| 9 | */ |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 10 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 11 | #ifndef STRING_H |
| 12 | #define STRING_H |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 13 | |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 14 | #include <string_.h> |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 15 | |
| 16 | #ifndef NULL |
| 17 | #define NULL ((void *) 0) |
| 18 | #endif |
| 19 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 20 | void *memcpy(void *dst, const void *src, size_t len); |
| 21 | void *memmove(void *dst, const void *src, size_t len); |
| 22 | int memcmp(const void *s1, const void *s2, size_t len); |
| 23 | int strcmp(const char *s1, const char *s2); |
| 24 | int strncmp(const char *s1, const char *s2, size_t n); |
| 25 | void *memchr(const void *src, int c, size_t len); |
| 26 | char *strchr(const char *s, int c); |
| 27 | void *memset(void *dst, int val, size_t count); |
| 28 | size_t strlen(const char *s); |
| 29 | size_t strnlen(const char *s, size_t maxlen); |
Antonio Nino Diaz | 12f0a0f | 2018-10-19 00:57:10 +0100 | [diff] [blame] | 30 | char *strrchr(const char *p, int ch); |
Antonio Nino Diaz | bbf55f9 | 2018-09-27 09:22:19 +0100 | [diff] [blame] | 31 | size_t strlcpy(char * dst, const char * src, size_t dsize); |
Antonio Nino Diaz | cf0f805 | 2018-08-17 10:45:47 +0100 | [diff] [blame] | 32 | |
Antonio Nino Diaz | 17605e7 | 2018-08-14 13:39:29 +0100 | [diff] [blame] | 33 | #endif /* STRING_H */ |