string.h 907 Bytes
Newer Older
1
2
3
4
5
/*
 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
/*
7
 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
8
9
 * All rights reserved.
 */
10

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
11
12
#ifndef STRING_H
#define STRING_H
13

14
#include <stddef.h>
15

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
16
17
18
19
20
21
void *memcpy(void *dst, const void *src, size_t len);
void *memmove(void *dst, const void *src, size_t len);
int memcmp(const void *s1, const void *s2, size_t len);
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, size_t n);
void *memchr(const void *src, int c, size_t len);
Ambroise Vincent's avatar
Ambroise Vincent committed
22
void *memrchr(const void *src, int c, size_t len);
Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
23
24
25
26
char *strchr(const char *s, int c);
void *memset(void *dst, int val, size_t count);
size_t strlen(const char *s);
size_t strnlen(const char *s, size_t maxlen);
27
char *strrchr(const char *p, int ch);
28
size_t strlcpy(char * dst, const char * src, size_t dsize);
29

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
30
#endif /* STRING_H */