Samsung Internal API reference  2.0
stdlib.h File Reference

Standard library header. More...

Go to the source code of this file.

Typedefs

typedef void(* constraint_handler_t) (const char *restrict msg, void *restrict ptr, errno_t error)
 

Functions

constraint_handler_t set_constraint_handler_s (constraint_handler_t handler)
 Set the handler to be handler. More...
 
void invoke_constraint_handler_s (const char *msg, const char *file, const char *function, uint32_t line, errno_t error)
 Print msg if constraint was caused. More...
 
void abort_handler_s (const char *restrict msg, void *restrict ptr, errno_t error)
 Abort system if constraint was caused. More...
 
void ignore_handler_s (const char *restrict msg, void *restrict ptr, errno_t error)
 Returns to the caller without performing any actions. More...
 
void exit (int status)
 Cause normal process termination and return the value of status & 0377 to the parent. More...
 
void _exit (int status)
 Terminate the calling process "immediately". Any open file descriptors belonging to the process are closed; process's parent is sent a SIGCHLD signal. More...
 
static __inline__ int abs (int j)
 Compute the absolute value of the integer argument __n. More...
 
void abort (void)
 Cause abnormal process termination.
 
long strtol (const char *nptr, char **endptr, int base)
 Convert the initial part of the string in nptr to a long integer value according to the given base, which must be between 2 and 36 inclusive, or be the special value 0. More...
 
unsigned long strtoul (const char *cp, char **endp, int base)
 Convert the initial part of the string in nptr to a unsigned long integer value according to the given base, which must be between 2 and 36 inclusive, or be the special value 0. More...
 
double strtod (const char *nptr, char **endptr)
 the initial portion of the string pointed to by nptr to double. More...
 
long long strtoll (const char *nptr, char **endptr, int base)
 Convert the initial part of the string in nptr to a long long integer value according to the given base, which must be between 2 and 36 inclusive, or be the special value 0. More...
 
unsigned long long strtoull (const char *cp, char **endp, int base)
 Convert the initial part of the string in nptr to a unsigned long long integer value according to the given base, which must be between 2 and 36 inclusive, or be the special value 0. More...
 
float strtof (const char *nptr, char **endptr)
 the initial portion of the string pointed to by nptr to float. More...
 
long double strtold (const char *nptr, char **endptr)
 the initial portion of the string pointed to by nptr to long double. More...
 
int atexit (void(*func)(void))
 Register the given function to be called at normal process termination. More...
 
void * malloc (size_t size)
 Allocate size bytes and return a pointer to the allocated memory. More...
 
void free (void *ptr)
 Free the memory space pointer to by ptr. More...
 
void * calloc (size_t nmemb, size_t size)
 Allocate memory for an array of nmemb elements of size bytes each and return a pointer to the allocated memory. More...
 
void * realloc (void *ptr, size_t size)
 Change the size of the memory block pointed to by ptr to size bytes. More...
 
void qsort (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
 Sort an array. More...
 
void qsort_r (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)
 Sort an array. More...
 
int atoi (const char *nptr)
 Convert a string to an integer. More...
 
double atof (const char *nptr)
 Convert a string to a double. More...
 
char * getenv (const char *name)
 get an environment variable function stub More...
 
int unsetenv (const char *name)
 delete environment variable function stub More...
 
int setenv (const char *name, const char *value, int overwrite)
 change or add environment variable function stub More...
 

Detailed Description

Standard library header.