.TH "string.h" 3teegris "Sun Oct 28 2018" "Version 2.0" "Samsung Internal API reference" \" -*- nroff -*-
.ad l
.nh
.SH NAME
string.h \- String manipulation funcitons\&.  

.SH SYNOPSIS
.br
.PP
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBerrno_t\fP \fBmemcpy_s\fP (void *restrict dest, rsize_t dest_max, const void *restrict src, rsize_t n)"
.br
.RI "\fICheck arguments and copy \fCsrc\fP sized memory area to \fCdest\fP\&. Memory must not be overlapped\&. To copy overlapped area use \fBmemmove_s()\fP function\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBmemmove_s\fP (void *dest, rsize_t dest_max, const void *src, rsize_t n)"
.br
.RI "\fICheck arguments and copy \fCsrc\fP sized memory area to \fCdest\fP\&. Memory may be overlapped\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBmemset_s\fP (void *block, rsize_t block_max, int c, rsize_t n)"
.br
.RI "\fICheck arguments and fill \fCn\fP bytes of \fCblock\fP sized memory with \fCc\fP constant value\&. \fP"
.ti -1c
.RI "size_t \fBstrnlen_s\fP (const char *s, size_t s_max)"
.br
.RI "\fICheck arguments and calculate the length of the \fCs\fP fixed-size string, excluding the terminating null byte ('\\0')\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBstrcpy_s\fP (char *restrict dest, rsize_t dest_max, const char *restrict src)"
.br
.RI "\fICheck arguments and copy the \fCsrc\fP string, including the terminating null byte ('\\0'), to the \fCdest\fP sized buffer\&. If \fCn\fP is bigger than size of \fCsrc\fP then the remaining characters (after '\\0') are unspecified\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBstrncpy_s\fP (char *restrict dest, rsize_t dest_max, const char *restrict src, rsize_t n)"
.br
.RI "\fICheck arguments and copy at most \fCn\fP bytes of the \fCsrc\fP string, including the terminating null byte ('\\0') to the \fCdest\fP sized buffer\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBstrcat_s\fP (char *restrict dest, rsize_t dest_max, const char *restrict src)"
.br
.RI "\fICheck arguments and append the \fCsrc\fP string to the \fCdest\fP string, overwriting the terminating null byte ('\\0') at the end of \fCdest\fP, and add a terminating null byte\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBstrncat_s\fP (char *restrict dest, rsize_t dest_max, const char *restrict src, rsize_t n)"
.br
.RI "\fICheck arguments and append at most \fCn\fP bytes of \fCsrc\fP string to the \fCdest\fP string, overwriting the terminating null byte ('\\0') at the end of dest and then adds a terminating null byte\&. \fP"
.ti -1c
.RI "\fBerrno_t\fP \fBstrerror_s\fP (char *buf, rsize_t bufmax, \fBerrno_t\fP errnum)"
.br
.RI "\fICheck arguments and return a pointer to a \fCbuf\fP string that describes the \fCerrnum\fP error code\&. \fP"
.ti -1c
.RI "void * \fBmemcpy\fP (void *dest, const void *src, size_t n)"
.br
.RI "\fICopy memory area from \fCsrc\fP to \fCdst\fP\&. The memory must not overlap\&. To copy overlapped area use \fBmemmove()\fP function\&. \fP"
.ti -1c
.RI "void * \fBmemmove\fP (void *dest, const void *src, size_t n)"
.br
.RI "\fICopy memory area from \fCsrc\fP to \fCdest\fP\&. The memory may overlap\&. \fP"
.ti -1c
.RI "int \fBmemcmp\fP (const void *s1, const void *s2, size_t n)"
.br
.RI "\fICompare fist \fCn\fP bytes of memory pointed by \fCs1\fP and \fCs2\fP\&. \fP"
.ti -1c
.RI "void * \fBmemset\fP (void *block, int c, size_t size)"
.br
.RI "\fIFill \fCsize\fP bytes with a constant value\&. \fP"
.ti -1c
.RI "size_t \fBstrlen\fP (const char *s)"
.br
.RI "\fICalculate the length of the string \fCs\fP, excluding the terminating null byte ('\\0')\&. \fP"
.ti -1c
.RI "size_t \fBstrnlen\fP (const char *s, size_t n)"
.br
.RI "\fICalculate the length of the fixed-size string \fCs\fP, excluding the terminating null byte ('\\0')\&. \fP"
.ti -1c
.RI "char * \fBstrcpy\fP (char *dest, const char *src)"
.br
.RI "\fICopy the string pointed to by \fCsrc\fP, including the terminating null byte ('\\0'), to the buffer pointed to by \fCdest\fP\&. \fP"
.ti -1c
.RI "char * \fBstrncpy\fP (char *dest, const char *src, size_t n)"
.br
.RI "\fICopy at most \fCn\fP bytes of the string pointed to by \fCsrc\fP, including the terminating null byte ('\\0'), to the buffer pointed to by \fCdest\fP\&. \fP"
.ti -1c
.RI "char * \fBstrdup\fP (const char *s)"
.br
.RI "\fIReturn a pointer to a new string which is a duplicate of the string \fCs\fP\&. Memory for the new string is obtained with \fC\fBmalloc()\fP\fP\&. \fP"
.ti -1c
.RI "char * \fBstrstr\fP (const char *text, const char *pattern)"
.br
.RI "\fIFind the first occurrence of the substring \fCpattern\fP in the string \fCtext\fP\&. The terminating null bytes ('\\0') are not compared\&. \fP"
.ti -1c
.RI "char * \fBstrncat\fP (char *dest, const char *src, size_t n)"
.br
.RI "\fIAppend the \fCsrc\fP string to the \fCdest\fP string, overwriting the terminating null byte ('\\0') at the end of dest, and then adds a terminating null byte\&. \fP"
.ti -1c
.RI "size_t \fBstrlcat\fP (char *dest, const char *src, size_t n)"
.br
.RI "\fIAppend the NUL-terminated string \fCsrc\fP to the end of \fCdest\fP string, overwriting the terminating null byte ('\\0') at the end of dest, and guarantee to NUL-terminate the result\&. \fP"
.ti -1c
.RI "char * \fBstrcat\fP (char *dest, const char *src)"
.br
.RI "\fIAppend the \fCsrc\fP string to the \fCdest\fP string, overwriting the terminating null byte ('\\0') at the end of dest, and then adds a terminating null byte\&. \fP"
.ti -1c
.RI "int \fBstrcmp\fP (const char *s1, const char *s2)"
.br
.RI "\fICompare the two strings \fCs1\fP and \fCs2\fP\&. \fP"
.ti -1c
.RI "int \fBstrncmp\fP (const char *s1, const char *s2, size_t n)"
.br
.RI "\fICompare at most \fCn\fP bytes of two strings \fCs1\fP and \fCs2\fP\&. \fP"
.ti -1c
.RI "char * \fBstrrchr\fP (const char *s, int c)"
.br
.RI "\fIFind last occurence of character \fCc\fP in string \fCs\fP\&. \fP"
.ti -1c
.RI "const char * \fBstrerror\fP (int errnum)"
.br
.RI "\fIReturn a pointer to a string that describes the error code passed in the argument \fCerrnum\fP\&. \fP"
.ti -1c
.RI "void * \fBmemchr\fP (const void *s, int c, size_t n)"
.br
.RI "\fIFind a character in an area of memory\&. \fP"
.ti -1c
.RI "char * \fBstrchr\fP (const char *s, int c)"
.br
.RI "\fIFind first occurence of character \fCc\fP in string \fCs\fP\&. \fP"
.ti -1c
.RI "char * \fBstrchrnul\fP (const char *s, int c)"
.br
.RI "\fIFind first occurence of character \fCc\fP in string \fCs\fP\&. \fP"
.ti -1c
.RI "size_t \fBstrspn\fP (const char *s, const char *\fBaccept\fP)"
.br
.RI "\fICalculate the length (in bytes) of the initial segment of s which consists entirely of bytes in accept\&. \fP"
.ti -1c
.RI "size_t \fBstrcspn\fP (const char *s, const char *reject)"
.br
.RI "\fICalculate the length of the initial segment of s which consists entirely of bytes not in reject\&. \fP"
.ti -1c
.RI "char * \fBstrtok\fP (char *str, const char *delim)"
.br
.RI "\fIFunction breaks a string into a sequence of zero or more nonempty tokens\&. \fP"
.ti -1c
.RI "char * \fBstrtok_r\fP (char *_restrict_ s, const char *_restrict_ sep, char **_restrict_ p)"
.br
.RI "\fIFunction breaks a string into a sequence of zero or more nonempty tokens\&. \fP"
.ti -1c
.RI "int \fBstrerror_r\fP (int errnum, char *buf, size_t buflen)"
.br
.RI "\fIReturns the error string in the user-supplied \fCbuf\fP of length \fCbuflen\fP\&. XSI-compliant version\&. \fP"
.in -1c
.SH "Detailed Description"
.PP 
String manipulation funcitons\&. 


.PP
\fBCopyright:\fP
.RS 4
(C) 2012-2018, Samsung Electronics Co\&., Ltd\&. 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for Samsung Internal API reference from the source code\&.
