Header Files and Their Functions. Cmath
Header Files and Their Functions. Cmath
Header Files and Their Functions. Cmath
cmath:
The <cmath> header file declares a set of functions to perform mathematical
operations.
Method Description
C++ copysign() returns num with value of first and sign of second
C++ lround() Returns the long int value nearest to the argument
C++ modf() Breaks Number Into Integral and Fractional Part
The <cstdlib> header file declares a set of general purpose functions such as: atof()
to convert string to Double.
Method Description
cstring
This header file defines several functions to manipulate C strings and arrays.
Method Description
Method Description
clocale:
The <clocale> header file declares a set of functions and a type for
internationalization support tasks such as date/time formatting, monetary
formatting etc.
Method Description
cwctype:
The <cwctype> header file declares a set of functions for classifying (and
transforming) individual wide characters.
Method Description
cstdio:
The <cstdio> header file includes several types macros and functions of C-style
input/output library.
Method Description
C++ clearerr() resets error flags and EOF indicator for stream
C++ feof() function checks if file stream EOF has been reached or not
C++ fgetc() reads the next character from given input stream
C++ fseek() sets file position indicator for given file stream
cwchar:
The <cwchar> header file declares a set of functions to work with C wide character
string (a computer character datatype that generally has a size greater than the
traditional 8-bit character).
Method Description
C++ fgetwc() reads next wide character from given input stream
C++ fputws() writes wide string except null wide char to output
C++ mbsrtowcs() convert narrow multibyte char seq to wide char seq
C++ vswscanf() read wide character string from wide string buffer
C++ wcspbrk() searches for set of wide char in given wide string
C++ wcsrtombs() convert wide char seq to narrow multibyte char seq
C++ wmemcpy() copies specified num of wide char from src to dest
C++ wmemset() copies single wide char for a certain num of time
cuchar:
The <cuchar> header file declares a set of functions to convert between multibyte
characters and UTF-16 or UTF-32.
Method Description
csetjmp:
The <csetjmp> header file declares longjmp(), setjmp() and a type jmp_buf which
are used to deviate program from the usual subroutine call and return sequence
(non-local jumps).
Method Description
C++ longjmp() and setjmp() restores previously saved environment
cfenv:
The floating point environment is a set of status flags, and control modes of a
floating-point.
Method Description
ctime() prototype
char* ctime(const time_t* time_ptr);
The ctime() function takes a pointer to time_t object as its parameter and returns a
text representation of the form:
hh 2 digit hour 00 to 23
mm 2 digit minute 00 to 59
ss 2 digit second 00 to 59
yyyy 4 digit year 4 digit year