fgets

Defined in header <stdio.h> char *fgets( char *str, int count, FILE *stream ); (until C99) char *fgets( char *restrict str, int count, FILE *restrict stream ); (since C99) Reads at most count - 1 characters from the given file stream and stores them in str. The produced character string is always null-terminated. Parsing stops if end-of-file occurs or a newline character is found, in which case str will contain that newline character. Parameters

cbrt

Defined in header <math.h> float cbrtf( float arg ); (1) (since C99) double cbrt( double arg ); (2) (since C99) long double cbrtl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define cbrt( arg ) (4) (since C99) 1-3) Computes the cubic root of arg. 4) Type-generic macro: If arg has type long double, cbrtl is called. Otherwise, if arg has integer type or the type double, cbrt is called. Otherwise, cbrtf is called

C memory management library

Functions Defined in header <stdlib.h> malloc allocates memory (function) calloc allocates and zeroes memory (function) realloc expands previously allocated memory block (function) free deallocates previously allocated memory (function) aligned_alloc (C11) allocates aligned memory (function) References C11 standard (ISO/IEC 9899:2011): 7.22.3 Memory management functions (p: 347-349) C99 standard (ISO/IEC 9899:1999): 7.20.3 Memory management funct

Localization support

Defined in header <locale.h> setlocale gets and sets the current C locale (function) localeconv queries numeric and monetary formatting details of the current locale (function) lconv formatting details, returned by localeconv (struct) Locale categories LC_ALLLC_COLLATELC_CTYPELC_MONETARYLC_NUMERICLC_TIME locale categories for setlocale (macro constant) References C11 standard (ISO/IEC 9899:2011): 7.11 Localization <locale.h> (p: 223-230) 7.31.6

localtime

Defined in header <time.h> struct tm *localtime( const time_t *time ); (1) struct tm *localtime_s(const time_t *restrict time, struct tm *restrict result); (2) (since C11) 1) Converts given time since epoch (a time_t value pointed to by time) into calendar time, expressed in local time, in the struct tm format. The result is stored in static storage and a pointer to that static storage is returned. 2) Same as (1), except that the function uses user-provided storage

fgetwc

Defined in header <wchar.h> wint_t fgetwc( FILE *stream ); (since C95) wint_t getwc( FILE *stream ); (since C95) Reads the next wide character from the given input stream. getwc() may be implemented as a macro and may evaluate stream more than once. Parameters stream - to read the wide character from Return value The next wide character from the stream or WEOF if an error has occurred or the end of file has been reached. If an encoding error occurred, er

isgreater

Defined in header <math.h> #define isgreater(x, y) /* implementation defined */ (since C99) Determines if the floating point number x is greater than the floating-point number (y), without setting floating-point exceptions. Parameters x - floating point value y - floating point value Return value Nonzero integral value if x > y, ​0​ otherwise. Notes The built-in operator> for floating-point numbers may set FE_INVALID if one or both of the argume

islessequal

Defined in header <math.h> #define islessequal(x, y) /* implementation defined */ (since C99) Determines if the floating point number x is less than or equal to the floating-point number y, without setting floating-point exceptions. Parameters x - floating point value y - floating point value Return value Nonzero integral value if x <= y, ​0​ otherwise. Notes The built-in operator<= for floating-point numbers may raise FE_INVALID if one or both

Array declaration

Array is a type consisting of a contiguously allocated nonempty sequence of objects with a particular element type. The number of those objects (the array size) never changes during the array lifetime. Syntax In the declaration grammar of an array declaration, the type-specifier sequence designates the element type (which must be a complete object type), and the declarator has the form: [ static(optional) qualifiers(optional) expression(optional) ] (1) [ qualifiers(optional) static(op

isinf

Defined in header <math.h> #define isinf(arg) /* implementation defined */ (since C99) Determines if the given floating point number arg is positive or negative infinity. The macro returns an integral value. FLT_EVAL_METHOD is ignored: even if the argument is evaluated with more range and precision than its type, it is first converted to its semantic type, and the classification is based on that. Parameters arg - floating point value Return value Nonzero integ