STRING.H(3) Library Functions Manual STRING.H(3)

NAME

string.hbyte string manipulation

SYNOPSIS

#include <string.h>

DESCRIPTION

The <string.h> header provides byte string manipulation operations.

The type size_t, and the preprocessor constant NULL shall be defined.

The following shall be defined as functions:

 
void *memcpy(void *restrict dest, const void *restrict src, size_t byteCount)
 
void *memmove(void *dest, void *src, size_t byteCount)
 
char *strcpy(char *restrict dest, const char *restrict src)
 
char *strncpy(char *restrict dest, const char *src, size_t byteCount)
 
char *strcat(char *restrict s1, const char *restrict s2)
 
char *strncat(char *restrict s1, const char *restrict s2, size_t n)
 
int memcmp(const void *s1, const void *s2, size_t n)
 
int strcmp(const char *s1, const char *s2)
 
int strcoll(const char *s1, const char *s2)
 
int strncmp(const char *s1, const char *s2, size_t n)
 
size_t strxfrm(char *restrict s1, const char *restrict s2, size_t n)
 
void *memchr(const void *s, int c, size_t n)
 
char *strchr(const char *s, int c)
 
size_t strcspn(const char *s1, const char *s2)
 
char *strpbrk(const char *s1, const char *s2)
 
char *strrchr(const char *s, int c)
 
size_t strspn(const char *s1, const char *s2)
 
char *strstr(const char *s1, const char *s2)
 
char *strtok(char *restrict s1, const char *restrict s2)
 
void *memset(void *s, int c, size_t n)
 
char *strerror(int errnum)
 
size_t strlen(const char *s)

#define _XOPEN_SOURCE || _POSIX_C_SOURCE >= 200809L

 
char *strdup(const char*src)

#define _POSIX_C_SOURCE >= 200809L

 
char *strndup(const char*src, size_t n)

SEE ALSO

wchar.h(3) stdlib.h(3) memcpy(3) memmove(3) strcpy(3) strncpy(3) strcat(3) strncat(3) memcmp(3) strcmp(3) strcoll(3) strncmp(3) strxfrm(3) memchr(3) strchr(3) strcspn(3) strpbrk(3) strrchr(3) strspn(3) strstr(3) strtok(3) memset(3) strerror(3) strlen(3) strdup(3) strndup(3)

STANDARDS

Conforming to ISO/IEC 9899:1990 (“ISO C90”), ISO/IEC 9899:1999 (“ISO C99”).
February 20, 2013 Fusion