.TH "stdlib.h" 3teegris "Sun Oct 28 2018" "Version 2.0" "Samsung Internal API reference" \" -*- nroff -*-
.ad l
.nh
.SH NAME
stdlib.h \- Standard library header\&.  

.SH SYNOPSIS
.br
.PP
.SS "Typedefs"

.in +1c
.ti -1c
.RI "typedef void(* \fBconstraint_handler_t\fP) (const char *restrict msg, void *restrict ptr, \fBerrno_t\fP error)"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBconstraint_handler_t\fP \fBset_constraint_handler_s\fP (\fBconstraint_handler_t\fP handler)"
.br
.RI "\fISet the \fChandler\fP to be handler\&. \fP"
.ti -1c
.RI "void \fBinvoke_constraint_handler_s\fP (const char *msg, const char *file, const char *function, uint32_t line, \fBerrno_t\fP error)"
.br
.RI "\fIPrint \fCmsg\fP if constraint was caused\&. \fP"
.ti -1c
.RI "void \fBabort_handler_s\fP (const char *restrict msg, void *restrict ptr, \fBerrno_t\fP error)"
.br
.RI "\fIAbort system if constraint was caused\&. \fP"
.ti -1c
.RI "void \fBignore_handler_s\fP (const char *restrict msg, void *restrict ptr, \fBerrno_t\fP error)"
.br
.RI "\fIReturns to the caller without performing any actions\&. \fP"
.ti -1c
.RI "void \fBexit\fP (int status)"
.br
.RI "\fICause normal process termination and return the value of \fCstatus\fP & 0377 to the parent\&. \fP"
.ti -1c
.RI "void \fB_exit\fP (int status)"
.br
.RI "\fITerminate the calling process 'immediately'\&. Any open file descriptors belonging to the process are closed; process's parent is sent a SIGCHLD signal\&. \fP"
.ti -1c
.RI "static __inline__ int \fBabs\fP (int j)"
.br
.RI "\fICompute the absolute value of the integer argument \fC__n\fP\&. \fP"
.ti -1c
.RI "void \fBabort\fP (void)"
.br
.RI "\fICause abnormal process termination\&. \fP"
.ti -1c
.RI "long \fBstrtol\fP (const char *nptr, char **endptr, int base)"
.br
.RI "\fIConvert the initial part of the string in \fCnptr\fP to a long integer value according to the given \fCbase\fP, which must be between 2 and 36 inclusive, or be the special value 0\&. \fP"
.ti -1c
.RI "unsigned long \fBstrtoul\fP (const char *cp, char **endp, int base)"
.br
.RI "\fIConvert the initial part of the string in \fCnptr\fP to a unsigned long integer value according to the given \fCbase\fP, which must be between 2 and 36 inclusive, or be the special value 0\&. \fP"
.ti -1c
.RI "double \fBstrtod\fP (const char *nptr, char **endptr)"
.br
.RI "\fIthe initial portion of the string pointed to by \fCnptr\fP to double\&. \fP"
.ti -1c
.RI "long long \fBstrtoll\fP (const char *nptr, char **endptr, int base)"
.br
.RI "\fIConvert the initial part of the string in \fCnptr\fP to a long long integer value according to the given \fCbase\fP, which must be between 2 and 36 inclusive, or be the special value 0\&. \fP"
.ti -1c
.RI "unsigned long long \fBstrtoull\fP (const char *cp, char **endp, int base)"
.br
.RI "\fIConvert the initial part of the string in \fCnptr\fP to a unsigned long long integer value according to the given \fCbase\fP, which must be between 2 and 36 inclusive, or be the special value 0\&. \fP"
.ti -1c
.RI "float \fBstrtof\fP (const char *nptr, char **endptr)"
.br
.RI "\fIthe initial portion of the string pointed to by \fCnptr\fP to float\&. \fP"
.ti -1c
.RI "long double \fBstrtold\fP (const char *nptr, char **endptr)"
.br
.RI "\fIthe initial portion of the string pointed to by \fCnptr\fP to long double\&. \fP"
.ti -1c
.RI "int \fBatexit\fP (void(*func)(void))"
.br
.RI "\fIRegister the given function to be called at normal process termination\&. \fP"
.ti -1c
.RI "void * \fBmalloc\fP (size_t size)"
.br
.RI "\fIAllocate \fCsize\fP bytes and return a pointer to the allocated memory\&. \fP"
.ti -1c
.RI "void \fBfree\fP (void *ptr)"
.br
.RI "\fIFree the memory space pointer to by \fCptr\fP\&. \fP"
.ti -1c
.RI "void * \fBcalloc\fP (size_t nmemb, size_t size)"
.br
.RI "\fIAllocate memory for an array of \fCnmemb\fP elements of \fCsize\fP bytes each and return a pointer to the allocated memory\&. \fP"
.ti -1c
.RI "void * \fBrealloc\fP (void *ptr, size_t size)"
.br
.RI "\fIChange the size of the memory block pointed to by \fCptr\fP to \fCsize\fP bytes\&. \fP"
.ti -1c
.RI "void \fBqsort\fP (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))"
.br
.RI "\fISort an array\&. \fP"
.ti -1c
.RI "void \fBqsort_r\fP (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)"
.br
.RI "\fISort an array\&. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Standard library header\&. 


.PP
\fBCopyright:\fP
.RS 4
(C) 2013 - 2018, Samsung Electronics Co\&., Ltd\&. 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for Samsung Internal API reference from the source code\&.
