The errno.h header file of the C Standard Library defines the integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong.
Library Macros
This is the macro set by system calls and some library functions in the event of an error to indicate what went wrong.
This macro represents a domain error, which occurs if an input argument is outside the domain, over which the mathematical function is defined and errno is set to EDOM.
This macro represents a range error, which occurs if an input argument is outside the range, over which the mathematical function is defined and errno is set to ERANGE.
C Library - <float.h>
The float.h header file of the C Standard Library contains a set of various platform-dependent constants related to floating point values. These constants are proposed by ANSI C.
C Library - <limits.h>
The limits.h header determines various properties of the various variable types. The macros defined in this header, limits the values of various variable types like char, int and long.
C Library - <math.h>
The math.h header defines various mathematical functions and one macro. All the functions available in this library take double as an argument and return double as the result.
Library Functions
Returns the arc cosine of x in radians.
Returns the arc sine of x in radians.
Returns the arc tangent of x in radians.
Returns the arc tangent in radians of y/x based on the signs of both values to determine the correct quadrant.
Returns the cosine of a radian angle x.
Returns the hyperbolic cosine of x.
Returns the sine of a radian angle x.
Returns the hyperbolic tangent of x.
Returns the value of e raised to the xth power.
The returned value is the mantissa and the integer pointed to by exponent is the exponent. The resultant value is x = mantissa * 2 ^ exponent.
Returns x multiplied by 2 raised to the power of exponent.
Returns the natural logarithm (base-e logarithm) of x.
Returns the common logarithm (base-10 logarithm) of x.
The returned value is the fraction component (part after the decimal), and sets integer to the integer component.
Returns x raised to the power of y.
Returns the square root of x.
Returns the smallest integer value greater than or equal to x.
Returns the absolute value of x.
Returns the largest integer value less than or equal to x.
Returns the remainder of x divided by y.
C Library - <setjmp.h>
The setjmp.h header defines the macro setjmp(), one function longjmp(), and one variable type jmp_buf, for bypassing the normal function call and return discipline.
Không có nhận xét nào:
Đăng nhận xét