- <assert.h> : Diagnostics
- <ctype.h> : Character Class Tests
- <errno.h> : Error Codes Reported by (Some) Library Functions
- <float.h> : Implementation-defined Floating-Point Limits
- <limits.h> : Implementation-defined Limits
- <locale.h> : Locale-specific Information
- <math.h> : Mathematical Functions
- <setjmp.h> : Non-local Jumps
- <signal.h> : Signals
- <stdarg.h> : Variable Argument Lists
- <stddef.h> : Definitions of General Use
- <stdio.h> : Input and Output
- <stdlib.h> : Utility functions
- <string.h> : String functions
- <time.h> : Time and Date functions
Macro used for internal error detection. (Ignored if NDEBUG is defined where <assert.h> is included.) If expression equals zero, message printed on stderr and abortcalled to terminate execution. Source filename and line number in message are from preprocessor macros __FILE__ and __LINE__.
is control character. In ASCII, control characters are 0x00 (NUL) to 0x1F (US), and 0x7F (DEL)
is printing character other than space
is printing character (including space). In ASCII, printing characters are 0x20 (' ') to 0x7E ('~')
is printing character other than space, letter, digit
is space, formfeed, newline, carriage return, tab, vertical tab
object to which certain library functions assign specific positive values on error
- other implementation-defined error values are permitted
- to determine the value (if any) assigned to errno by a library function, a program should assign zero to errno immediately prior to the function call
radix of floating-point representations
Where the prefix "FLT" pertains to type float, "DBL" to type double, and "LDBL" to type long double:
smallest number x such that 1.0 + x != 1.0
number of digits, base FLT_RADIX, in mantissa
largest positive integer exponent to which FLT_RADIX can be raised and remain representable
smallest negative integer exponent to which FLT_RADIX can be raised and remain representable
maximum value of type signed char
minimum value of type signed char
maximum value of type unsigned char
maximum value of type unsigned short
maximum value of type unsigned int
maximum value of type unsigned long
Describes formatting of monetary and other numeric values:
decimal point for non-monetary values
sizes of digit groups for non-monetary values
separator for digit groups for non-monetary values (left of "decimal point")
decimal point for monetary values
sizes of digit groups for monetary values
separator for digit groups for monetary values (left of "decimal point")
negative sign for monetary values
positive sign for monetary values
number of digits to be displayed to right of "decimal point" for monetary values
number of digits to be displayed to right of "decimal point" for international monetary values
whether currency symbol precedes (1) or follows (0) negative monetary values
whether currency symbol is (1) or is not (0) separated by space from negative monetary values
format for negative monetary values:
parentheses surround quantity and currency symbol
sign precedes quantity and currency symbol
sign follows quantity and currency symbol
sign immediately precedes currency symbol
sign immediately follows currency symbol
whether currency symbol precedes (1) or follows (0) positive monetary values
whether currency symbol is (1) or is not (0) separated by space from non-negative monetary values
format for non-negative monetary values, with values as for n_sign_posn
Implementations may change field order and include additional fields. Standard C Library functions use only decimal_point.
struct lconv* localeconv(void);
returns pointer to formatting information for current locale
char* setlocale(int category, const char* locale);
Sets components of locale according to specified category and locale. Returns string describing new locale or null on error. (Implementations are permitted to define values of category additional to those describe here.)
category argument for all categories
category for numeric formatting information
category for monetary formatting information
category for information affecting collating functions
category for information affecting character class tests functions
category for information affecting time conversions functions
On domain error, implementation-defined value returned and errno set to EDOM. On range error, errno set to ERANGE and return value is HUGE_VAL with correct sign for overflow, or zero for underflow. Angles are in radians.
magnitude returned (with correct sign) on overflow error
double pow(double x, double y);
smallest integer not less than x
largest integer not greater than x
double ldexp(double x, int n);
double frexp(double x, int* exp);
if x non-zero, returns value, with absolute value in interval [1/2, 1), and assigns to *exp integer such that product of return value and 2 raised to the power *exp equals x; if x zero, both return value and *exp are zero
double modf(double x, double* ip);
returns fractional part and assigns to *ip integral part of x, both with same sign as x
double fmod(double x, double y);
if y non-zero, floating-point remainder of x/y, with same sign as x; if y zero, result is implementation-defined
double atan2(double y, double x);
type of object holding context information
Saves context information in env and returns zero. Subsequent call to longjmp with same env returns non-zero.
void longjmp(jmp_bufenv, int val);
Restores context saved by most recent call to setjmp with specified env. Execution resumes as a second return from setjmp, with returned value val if specified value non-zero, or 1 otherwise.
(asynchronous) interactive attention
(asynchronous) termination request
specifies default signal handling
signal return value indicating error
specifies that signal should be ignored
void (*signal(int sig, void (*handler)(int)))(int);
Install handler for subsequent signal sig. If handler is SIG_DFL, implementation-defined default behaviour will be used; if SIG_IGN, signal will be ignored; otherwise function pointed to by handler will be invoked with argument sig. In the last case, handling is restored to default behaviour before handler is called. If handler returns, execution resumes where signal occurred. signal returns the previous handler or SIG_ERR on error. Initial state is implementation-defined. Implementations may may define signals additional to those listed here.
Sends signal sig. Returns zero on success.
type of object holding context information
void va_start(va_listap, lastarg);
Initialisation macro which must be called once before any unnamed argument is accessed. Stores context information in ap. lastarg is the last named parameter of the function.
Yields value of the type (type) and value of the next unnamed argument.
Termination macro which must be called once after argument processing and before exit from function.
Offset (in bytes) of member m from start of structure type stype.
Type for objects declared to store result of subtracting pointers.
Type for objects declared to store result of sizeof operator.
Size of buffer used by setbuf.
Value used to indicate end-of-stream or to report an error.
Maximum length required for array of characters to hold a filename.
Maximum number of files which may be open simultaneously.
Number of characters required for temporary filename generated by