Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
string.h
Go to the documentation of this file.
1/* string.h */
2
3/*
4 * Copyright (c) 2014 Wind River Systems, Inc.
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
9#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STRING_H_
10#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STRING_H_
11
12#include <stddef.h>
13#include <zephyr/toolchain.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19extern char *strcpy(char *ZRESTRICT d, const char *ZRESTRICT s);
20extern char *strerror(int errnum);
21extern int strerror_r(int errnum, char *strerrbuf, size_t buflen);
22extern char *strncpy(char *ZRESTRICT d, const char *ZRESTRICT s,
23 size_t n);
24extern char *strchr(const char *s, int c);
25extern char *strrchr(const char *s, int c);
26extern size_t strlen(const char *s);
27extern size_t strnlen(const char *s, size_t maxlen);
28extern int strcmp(const char *s1, const char *s2);
29extern int strncmp(const char *s1, const char *s2, size_t n);
30extern char *strtok_r(char *str, const char *sep, char **state);
31extern char *strcat(char *ZRESTRICT dest,
32 const char *ZRESTRICT src);
33extern char *strncat(char *ZRESTRICT dest, const char *ZRESTRICT src,
34 size_t n);
35extern char *strstr(const char *s, const char *find);
36
37extern size_t strspn(const char *s, const char *accept);
38extern size_t strcspn(const char *s, const char *reject);
39
40extern int memcmp(const void *m1, const void *m2, size_t n);
41extern void *memmove(void *d, const void *s, size_t n);
42extern void *memcpy(void *ZRESTRICT d, const void *ZRESTRICT s,
43 size_t n);
44extern void *memset(void *buf, int c, size_t n);
45extern void *memchr(const void *s, int c, size_t n);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STRING_H_ */
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa s
Definition: asm-macro-32-bit-gnu.h:17
irp nz macro MOVR cc d
Definition: asm-macro-32-bit-gnu.h:11
#define ZRESTRICT
Definition: common.h:36
static int accept(int sock, struct sockaddr *addr, socklen_t *addrlen)
POSIX wrapper for zsock_accept.
Definition: socket.h:911
state
Definition: parser_state.h:29
int strncmp(const char *s1, const char *s2, size_t n)
int strerror_r(int errnum, char *strerrbuf, size_t buflen)
void * memchr(const void *s, int c, size_t n)
int strcmp(const char *s1, const char *s2)
char * strtok_r(char *str, const char *sep, char **state)
char * strncat(char *ZRESTRICT dest, const char *ZRESTRICT src, size_t n)
void * memset(void *buf, int c, size_t n)
char * strerror(int errnum)
char * strcpy(char *ZRESTRICT d, const char *ZRESTRICT s)
void * memmove(void *d, const void *s, size_t n)
char * strcat(char *ZRESTRICT dest, const char *ZRESTRICT src)
size_t strspn(const char *s, const char *accept)
size_t strlen(const char *s)
char * strncpy(char *ZRESTRICT d, const char *ZRESTRICT s, size_t n)
char * strchr(const char *s, int c)
int memcmp(const void *m1, const void *m2, size_t n)
char * strstr(const char *s, const char *find)
size_t strcspn(const char *s, const char *reject)
void * memcpy(void *ZRESTRICT d, const void *ZRESTRICT s, size_t n)
char * strrchr(const char *s, int c)
size_t strnlen(const char *s, size_t maxlen)
Macros to abstract toolchain specific capabilities.