18#ifndef ZEPHYR_INCLUDE_POSIX_POSIX_STRING_H_
19#define ZEPHYR_INCLUDE_POSIX_POSIX_STRING_H_
23#include <zephyr/toolchain.h>
29#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700) || defined(__DOXYGEN__)
38char *
stpcpy(
char *ZRESTRICT s1,
const char *ZRESTRICT s2);
41#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700) || defined(__DOXYGEN__)
51char *
stpncpy(
char *ZRESTRICT s1,
const char *ZRESTRICT s2,
size_t n);
54#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 500) || defined(__DOXYGEN__)
65#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700) || defined(__DOXYGEN__)
78#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700) || defined(__DOXYGEN__)
88size_t strnlen(
const char *s,
size_t maxlen);
91#if (_POSIX_C_SOURCE >= 200809L) || (_XOPEN_SOURCE >= 700) || defined(__DOXYGEN__)
101char *
strtok_r(
char *str,
const char *sep,
char **state);
char * strtok_r(char *str, const char *sep, char **state)
Tokenize a string into tokens (reentrant).
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.
char * stpcpy(char *ZRESTRICT s1, const char *ZRESTRICT s2)
Copy a string and return a pointer to the terminating NUL byte.
size_t strnlen(const char *s, size_t maxlen)
Determine the length of a fixed-size string.
char * strsignal(int signo)
Return a string describing a signal number.