Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
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 <bits/restrict.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19extern char *strcpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s);
20extern char *strncpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s,
21 size_t n);
22extern char *strchr(const char *s, int c);
23extern char *strrchr(const char *s, int c);
24extern size_t strlen(const char *s);
25extern size_t strnlen(const char *s, size_t maxlen);
26extern int strcmp(const char *s1, const char *s2);
27extern int strncmp(const char *s1, const char *s2, size_t n);
28extern char *strtok_r(char *str, const char *sep, char **state);
29extern char *strcat(char *_MLIBC_RESTRICT dest,
30 const char *_MLIBC_RESTRICT src);
31extern char *strncat(char *_MLIBC_RESTRICT dest, const char *_MLIBC_RESTRICT src,
32 size_t n);
33extern char *strstr(const char *s, const char *find);
34
35extern size_t strspn(const char *s, const char *accept);
36extern size_t strcspn(const char *s, const char *reject);
37
38extern int memcmp(const void *m1, const void *m2, size_t n);
39extern void *memmove(void *d, const void *s, size_t n);
40extern void *memcpy(void *_MLIBC_RESTRICT d, const void *_MLIBC_RESTRICT s,
41 size_t n);
42extern void *memset(void *buf, int c, size_t n);
43extern void *memchr(const void *s, int c, size_t n);
44
45#ifdef __cplusplus
46}
47#endif
48
49#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
state
Definition: http_parser_state.h:30
char c
Definition: printk.c:71
_MLIBC_RESTRICT definition
int strncmp(const char *s1, const char *s2, size_t n)
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 * strncpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s, size_t n)
void * memset(void *buf, int c, size_t n)
char * strcpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s)
char * strncat(char *_MLIBC_RESTRICT dest, const char *_MLIBC_RESTRICT src, size_t n)
void * memmove(void *d, const void *s, size_t n)
void * memcpy(void *_MLIBC_RESTRICT d, const void *_MLIBC_RESTRICT s, size_t n)
size_t strspn(const char *s, const char *accept)
size_t strlen(const char *s)
char * strchr(const char *s, int c)
int memcmp(const void *m1, const void *m2, size_t n)
char * strcat(char *_MLIBC_RESTRICT dest, const char *_MLIBC_RESTRICT src)
char * strstr(const char *s, const char *find)
size_t strcspn(const char *s, const char *reject)
char * strrchr(const char *s, int c)
size_t strnlen(const char *s, size_t maxlen)
NMI_API sint8 accept(SOCKET sock, struct sockaddr *addr, uint8 *addrlen)