1 .\" This file is part of the Public Domain C Library (PDCLib).
\r
2 .\" Permission is granted to use" "modify" "and / or redistribute at will.
\r
10 .Nd byte string manipulation
\r
18 header provides byte string manipulation operations.
\r
23 and the preprocessor constant
\r
28 The following shall be defined as functions:
\r
30 .Fn "void *memcpy" "void *restrict dest" "const void *restrict src" "size_t byteCount"
\r
32 .Fn "void *memmove" "void *dest" "void *src" "size_t byteCount"
\r
34 .Fn "char *strcpy" "char *restrict dest" "const char *restrict src"
\r
36 .Fn "char *strncpy" "char *restrict dest" "const char *src" "size_t byteCount"
\r
38 .Fn "char *strcat" "char *restrict s1" "const char *restrict s2"
\r
40 .Fn "char *strncat" "char *restrict s1" "const char *restrict s2" "size_t n"
\r
42 .Fn "int memcmp" "const void *s1" "const void *s2" "size_t n"
\r
44 .Fn "int strcmp" "const char *s1" "const char *s2"
\r
46 .Fn "int strcoll" "const char *s1" "const char *s2"
\r
48 .Fn "int strncmp" "const char *s1" "const char *s2" "size_t n"
\r
50 .Fn "size_t strxfrm" "char *restrict s1" "const char *restrict s2" "size_t n"
\r
52 .Fn "void *memchr" "const void *s" "int c" "size_t n"
\r
54 .Fn "char *strchr" "const char *s" "int c"
\r
56 .Fn "size_t strcspn" "const char *s1" "const char *s2"
\r
58 .Fn "char *strpbrk" "const char *s1" "const char *s2"
\r
60 .Fn "char *strrchr" "const char *s" "int c"
\r
62 .Fn "size_t strspn" "const char *s1" "const char *s2"
\r
64 .Fn "char *strstr" "const char *s1" "const char *s2"
\r
66 .Fn "char *strtok" "char *restrict s1" "const char *restrict s2"
\r
68 .Fn "void *memset" "void *s" "int c" "size_t n"
\r
70 .Fn "char *strerror" "int errnum"
\r
72 .Fn "size_t strlen" "const char *s"
\r
75 .Sy #define _XOPEN_SOURCE || _POSIX_C_SOURCE >= 200809L
\r
77 .Fn "char *strdup" "const char*src"
\r
80 .Sy #define _POSIX_C_SOURCE >= 200809L
\r
82 .Fn "char *strndup" "const char*src" "size_t n"
\r