blob: 7ddeed94ac3b7b9ba38ca61e20ac12634518455c [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.
Jit Loon Lim410c4512023-05-28 16:33:28 +08008 * Portions copyright (c) 2023, Intel Corporation. All rights reserved.
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01009 * All rights reserved.
10 */
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010011
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010012#ifndef STRING_H
13#define STRING_H
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010014
Bence Szépkúti92410c92019-10-25 18:12:41 +020015#include <stddef.h>
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010016
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010017void *memcpy(void *dst, const void *src, size_t len);
Jit Loon Lim410c4512023-05-28 16:33:28 +080018int memcpy_s(void *dst, size_t dsize, void *src, size_t ssize);
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010019void *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);
Ambroise Vincent35248f22019-06-19 17:14:09 +010024void *memrchr(const void *src, int c, size_t len);
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010025char *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);
Antonio Nino Diaz12f0a0f2018-10-19 00:57:10 +010029char *strrchr(const char *p, int ch);
Antonio Nino Diazbbf55f92018-09-27 09:22:19 +010030size_t strlcpy(char * dst, const char * src, size_t dsize);
Madhukar Pappireddyaf0cd5f2020-09-04 14:04:23 -050031size_t strlcat(char * dst, const char * src, size_t dsize);
Madhukar Pappireddyd7e7be32020-09-16 18:58:49 -050032char *strtok_r(char *s, const char *delim, char **last);
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010033
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010034#endif /* STRING_H */