blob: 98944831833dc52dd6214560fc3da04e71a2b8b9 [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/*
Madhukar Pappireddyaf0cd5f2020-09-04 14:04:23 -05007 * Portions copyright (c) 2018-2020, ARM Limited and Contributors.
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01008 * 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
Bence Szépkúti92410c92019-10-25 18:12:41 +020014#include <stddef.h>
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010015
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010016void *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);
Ambroise Vincent35248f22019-06-19 17:14:09 +010022void *memrchr(const void *src, int c, size_t len);
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010023char *strchr(const char *s, int c);
24void *memset(void *dst, int val, size_t count);
25size_t strlen(const char *s);
26size_t strnlen(const char *s, size_t maxlen);
Antonio Nino Diaz12f0a0f2018-10-19 00:57:10 +010027char *strrchr(const char *p, int ch);
Antonio Nino Diazbbf55f92018-09-27 09:22:19 +010028size_t strlcpy(char * dst, const char * src, size_t dsize);
Madhukar Pappireddyaf0cd5f2020-09-04 14:04:23 -050029size_t strlcat(char * dst, const char * src, size_t dsize);
Madhukar Pappireddyd7e7be32020-09-16 18:58:49 -050030char *strtok_r(char *s, const char *delim, char **last);
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010031
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010032#endif /* STRING_H */