string.h 839 Bytes
Newer Older
1
2
3
4
5
/*
 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
7
8
9
/*
 * Portions copyright (c) 2018, ARM Limited and Contributors.
 * 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
26
27
28
29
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);
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);
30
char *strrchr(const char *p, int ch);
31

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