blob: 8df8cf963b1b9e28a192397aa15279e957347412 [file] [log] [blame]
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6/*
Bence Szépkúti59130302019-12-18 17:18:16 +01007 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00008 * All rights reserved.
9 */
10
11#ifndef STRING_H
12#define STRING_H
13
Bence Szépkúti59130302019-12-18 17:18:16 +010014#include <stddef.h>
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000015
16void *memcpy(void *dst, const void *src, size_t len);
17void *memmove(void *dst, const void *src, size_t len);
18int memcmp(const void *s1, const void *s2, size_t len);
19int strcmp(const char *s1, const char *s2);
20int strncmp(const char *s1, const char *s2, size_t n);
21void *memchr(const void *src, int c, size_t len);
22char *strchr(const char *s, int c);
23void *memset(void *dst, int val, size_t count);
24size_t strlen(const char *s);
25size_t strnlen(const char *s, size_t maxlen);
26char *strrchr(const char *p, int ch);
27size_t strlcpy(char * dst, const char * src, size_t dsize);
Ambroise Vincent8a573de2019-02-11 13:54:30 +000028char *strncpy(char *dst, const char *src, size_t n);
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000029
30#endif /* STRING_H */