Translate

Chủ Nhật, 4 tháng 12, 2016

C standard library stdlib.h

Library Variables

size_t
This is the unsigned integral type and is the result of the sizeof keyword.
wchar_t
This is an integer type of the size of a wide character constant.
div_t
This is the structure returned by the div function.
ldiv_t
This is the structure returned by the ldiv function.

Library Macros

NULL
This macro is the value of a null pointer constant.
EXIT_FAILURE
This is the value for the exit function to return in case of failure.
EXIT_SUCCESS
This is the value for the exit function to return in case of success.
RAND_MAX
This macro is the maximum value returned by the rand function.
MB_CUR_MAX
This macro is the maximum number of bytes in a multi-byte character set which cannot be larger than MB_LEN_MAX.

Library Functions

Converts the string pointed to, by the argument str to a floating-point number (type double).
Converts the string pointed to, by the argument str to an integer (type int).
Converts the string pointed to, by the argument str to a long integer (type long int).
Converts the string pointed to, by the argument str to a floating-point number (type double).
Converts the string pointed to, by the argument str to a long integer (type long int).
Converts the string pointed to, by the argument str to an unsigned long integer (type unsigned long int).
Allocates the requested memory and returns a pointer to it.
Deallocates the memory previously allocated by a call to calloc, malloc, or realloc.
Allocates the requested memory and returns a pointer to it.
Attempts to resize the memory block pointed to by ptr that was previously allocated with a call to malloc or calloc.
Causes an abnormal program termination.
Causes the specified function func to be called when the program terminates normally.
Causes the program to terminate normally.
Searches for the environment string pointed to by name and returns the associated value to the string.
The command specified by string is passed to the host environment to be executed by the command processor.
Performs a binary search.
Sorts an array.
Returns the absolute value of x.
Divides numer (numerator) by denom (denominator).
Returns the absolute value of x.
Divides numer (numerator) by denom (denominator).
Returns a pseudo-random number in the range of 0 to RAND_MAX.
This function seeds the random number generator used by the function rand.
Returns the length of a multibyte character pointed to by the argument str.
Converts the string of multibyte characters pointed to by the argument str to the array pointed to by pwcs.
Examines the multibyte character pointed to by the argument str.
Converts the codes stored in the array pwcs to multibyte characters and stores them in the string str.
Examines the code which corresponds to a multibyte character given by the argument wchar.

Không có nhận xét nào:

Đăng nhận xét