blob: 135e4436733d7e3c74c761c01664812642c465f3 [file] [log] [blame]
Imre Kisf55f2aa2024-05-28 15:55:19 +02001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6/*
Imre Kisb2e06a02024-05-28 16:50:50 +02007 * Portions copyright (c) 2018-2024, Arm Limited and Contributors.
Imre Kisf55f2aa2024-05-28 15:55:19 +02008 * Portions copyright (c) 2023, Intel Corporation. All rights reserved.
9 * All rights reserved.
10 */
11
12#ifndef STRING_H
13#define STRING_H
14
15#include <stddef.h>
16
17void *memcpy(void *dst, const void *src, size_t len);
18int memcpy_s(void *dst, size_t dsize, void *src, size_t ssize);
19void *memmove(void *dst, const void *src, size_t len);
20int memcmp(const void *s1, const void *s2, size_t len);
21int strcmp(const char *s1, const char *s2);
22int strncmp(const char *s1, const char *s2, size_t n);
23void *memchr(const void *src, int c, size_t len);
24void *memrchr(const void *src, int c, size_t len);
25char *strchr(const char *s, int c);
26void *memset(void *dst, int val, size_t count);
27size_t strlen(const char *s);
28size_t strnlen(const char *s, size_t maxlen);
29char *strrchr(const char *p, int ch);
30size_t strlcpy(char * dst, const char * src, size_t dsize);
31size_t strlcat(char * dst, const char * src, size_t dsize);
32char *strtok_r(char *s, const char *delim, char **last);
Imre Kisb2e06a02024-05-28 16:50:50 +020033char *strstr(const char *haystack, const char *needle);
Imre Kisf55f2aa2024-05-28 15:55:19 +020034
35#endif /* STRING_H */