Hardware Reference
In-Depth Information
Read formatted data from a string
sscanf
Open a temporary file
tmpfile
Generate a unique temporary filename
tmpnam
Push a character back into stream
ungetc
Stdlib.h function summary
The standard C library functions ( stdlib.h ) can be divided into several groups
according to application which can include:
Conversion ( atof , atoi , atol , ecvt , fcvt , itoa , ltoa , strtod , strtol ,
strtoul , ultoa ).
Dynamic memory allocation/deallocation ( calloc , free , malloc , real-
loc ).
Program control and environment variables ( abort , atexit , exit , getenv ,
putenv , system ).
Sorting and searching ( bsearch , lfind , lsearch , qsort , swab ).
Mathematical operations ( abs , div , labs , ldiv ).
The available functions are as follows:
abort Abort current process returning error code
abs Return absolute value of integer parameter
atexit Specifies a function to be executed at exit
atof Convert string to double
atoi Convert string to integer
atol Convert string to long
bsearch Binary search
calloc Allocate array in memory
div Divide two integer values
ecvt Convert floating-point value to string
exit Terminate calling process
fcvt Convert floating-point value to string
free
Deallocate dynamically allocated memory
Convert floating-point value to string
gcvt
Get string from environment
getenv
Convert integer to string
itoa
Return absolute value of a long integer
labs
Divide two long-integer values
ldiv
Linear search
lfind
Linear search
lsearch
Convert long-integer value to string
ltoa
Allocate memory block
malloc
Return the greater of two parameters
max
Return the smaller of two parameters
min
Create or modify environment variable
putenv
Sort using quicksort algorithm
qsort
Generate random number
rand
Reallocate memory block
realloc
Search WWH ::




Custom Search