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