string.h 955 Bytes
Newer Older
1
2
3
4
5
/*
 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
/*
Ambroise Vincent's avatar
Ambroise Vincent committed
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 <string_.h>
15
16
17
18
19

#ifndef NULL
#define NULL ((void *) 0)
#endif

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
20
21
22
23
24
25
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
26
void *memrchr(const void *src, int c, size_t len);
Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
27
28
29
30
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);
31
char *strrchr(const char *p, int ch);
32
size_t strlcpy(char * dst, const char * src, size_t dsize);
33

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