posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
string.h File Reference

<string.h>: POSIX extensions to the C string library More...

#include <stddef.h>
#include <zephyr/toolchain.h>
Include dependency graph for posix_string.h:

Go to the source code of this file.

Functions

char * stpcpy (char *ZRESTRICT s1, const char *ZRESTRICT s2)
 Copy a string and return a pointer to the terminating NUL byte.
 
char * stpncpy (char *ZRESTRICT s1, const char *ZRESTRICT s2, size_t n)
 Copy at most n bytes of a string and return a pointer to the terminating NUL byte.
 
char * strdup (const char *s)
 Duplicate a string.
 
char * strndup (const char *s, size_t n)
 Duplicate at most n bytes of a string.
 
size_t strnlen (const char *s, size_t maxlen)
 Determine the length of a fixed-size string.
 
char * strtok_r (char *str, const char *sep, char **state)
 Tokenize a string into tokens (reentrant).
 
char * strsignal (int signo)
 Return a string describing a signal number.
 

Detailed Description

<string.h>: POSIX extensions to the C string library

Provides POSIX extensions to the standard <string.h> interface that are not part of ISO C.

See also
POSIX.1-2017 <string.h>

Definition in file string.h.