Tizen RT Libs&Environment  v1.0 D5
stdlib.h File Reference

standard library APIs More...

#include <tinyara/config.h>
#include <tinyara/compiler.h>
#include <sys/types.h>
#include <stdint.h>
Include dependency graph for stdlib.h:

Go to the source code of this file.

Data Structures

struct  mallinfo
 structure of memory information More...
 
struct  div_s
 
struct  ldiv_s
 
struct  lldiv_s
 

Macros

#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   1
 
#define MAX_RAND   32767
 
#define MB_CUR_MAX   1
 
#define environ   get_environ_ptr()
 
#define EXTERN   extern
 
#define _Exit(s)   _exit(s)
 
#define atoi(nptr)   strtol((nptr), NULL, 10)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
#define atol(nptr)   strtol((nptr), NULL, 10)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
#define atoll(nptr)   strtoll((nptr), NULL, 10)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
#define atof(nptr)   strtod((nptr), NULL)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 

Typedefs

typedef struct div_s div_t
 
typedef struct ldiv_s ldiv_t
 
typedef struct lldiv_s lldiv_t
 

Functions

void srand (unsigned int seed)
 initialize random number generator More...
 
int rand (void)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
FAR char * get_environ_ptr (size_t *envsize)
 Return a pointer to the thread specific environ variable. More...
 
FAR char * getenv (FAR const char *name)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int putenv (FAR const char *string)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int clearenv (void)
 clears the environment of all name-value pairs and sets the value of the external variable environ to NULL More...
 
int setenv (const char *name, const char *value, int overwrite)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int unsetenv (const char *name)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
void exit (int status) noreturn_function
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
void abort (void) noreturn_function
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int atexit (CODE void(*func)(void))
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int on_exit (CODE void(*func)(int, FAR void *), FAR void *arg)
 register a function to be called at program exit More...
 
long strtol (const char *, char **, int)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
unsigned long strtoul (const char *, char **, int)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
long long strtoll (const char *, char **, int)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
unsigned long long strtoull (const char *, char **, int)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
double_t strtod (const char *, char **)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
char * itoa (int value, char *str, int base)
 convert integer to string More...
 
FAR void * malloc (size_t)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
void free (FAR void *)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
FAR void * realloc (FAR void *, size_t)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
FAR void * memalign (size_t, size_t)
 allocates size bytes and returns a pointer to the allocated memory More...
 
FAR void * zalloc (size_t)
 Allocate and zero memory from the user heap. More...
 
FAR void * calloc (size_t, size_t)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int abs (int j)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
long int labs (long int j)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
long long int llabs (long long int j)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
void qsort (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int mallinfo (struct mallinfo *info)
 returns a copy of updated current heap information for the user heap More...
 

Detailed Description

standard library APIs

Definition in file stdlib.h.

Macro Definition Documentation

#define _Exit (   s)    _exit(s)

Definition at line 282 of file stdlib.h.

#define environ   get_environ_ptr()

Definition at line 106 of file stdlib.h.

#define EXIT_FAILURE   1

Definition at line 84 of file stdlib.h.

#define EXIT_SUCCESS   0

Definition at line 83 of file stdlib.h.

#define EXTERN   extern

Definition at line 166 of file stdlib.h.

#define MAX_RAND   32767

Definition at line 92 of file stdlib.h.

#define MB_CUR_MAX   1

Definition at line 98 of file stdlib.h.

Typedef Documentation

typedef struct div_s div_t

Definition at line 131 of file stdlib.h.

typedef struct ldiv_s ldiv_t

Definition at line 140 of file stdlib.h.

typedef struct lldiv_s lldiv_t

Definition at line 149 of file stdlib.h.