> ~ Online tutorial

    stdlib.h is the header of the general purpose standard library of C programming language which includes functions involving memory allocation, process control, conversions and others. It is compatible with C++ and is known as cstdlib in C++. The name "stdlib" stands for "standard library".

•    Member functions
•    Members of the stdlib.h can be classified into the following categories: conversion, memory, process control, sort and search, mathematics.
Name    Description
Type Conversion
atof      string to double (NOT float)
atoi      string to integer
atol      string to long

strtod   string to double
strtol    string to long int
strtoul  string to unsigned long int
strtoll   string to long long int

strtoull  string to unsigned long long int

Memory allocation and deallocation
malloc         allocate memory from the heap free
realloc        release memory back to the heap

abort          terminate execution abnormally

atexit          register a callback function for program exit
exit             terminate program execution
getenv        retrieve an environment variable
system       execute an external command

bsearch      binary search an array

qsort          sort an array

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
Powered By: BloggerYard.Com