blob: 050f6438095c9074dbd5fe7cc8368513e009d5f9 [file] [log] [blame]
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +01001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01006/*
7 * Portions copyright (c) 2018, ARM Limited and Contributors.
8 * All rights reserved.
9 */
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010010
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010011#ifndef STRING_H
12#define STRING_H
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010013
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +010014#include <string_.h>
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010015
16#ifndef NULL
17#define NULL ((void *) 0)
18#endif
19
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010020void *memcpy(void *dst, const void *src, size_t len);
21void *memmove(void *dst, const void *src, size_t len);
22int memcmp(const void *s1, const void *s2, size_t len);
23int strcmp(const char *s1, const char *s2);
24int strncmp(const char *s1, const char *s2, size_t n);
25void *memchr(const void *src, int c, size_t len);
26char *strchr(const char *s, int c);
27void *memset(void *dst, int val, size_t count);
28size_t strlen(const char *s);
29size_t strnlen(const char *s, size_t maxlen);
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010030
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010031#endif /* STRING_H */