wctype

Defined in header <wctype.h> wctype_t wctype( const char* str ); (since C95) Constructs a value of type wctype_t that describes a LC_CTYPE category of wide character classification. It may be one of the standard classification categories, or a locale-specific category, such as "jkanji". Parameters str - C string holding the name of the desired category The following values of str are supported in all C locales: value of str effect "alnum" identifies the ca

wmemset

Defined in header <wchar.h> wchar_t *wmemset( wchar_t *dest, wchar_t ch, size_t count ); (since C95) Copies the wide character ch into each of the first count wide characters of the wide character array (or integer array of compatible type) pointed to by dest. If overflow occurs, the behavior is undefined. If count is zero, the function does nothing. Parameters dest - pointer to the wide character array to fill ch - fill wide character count - number of

srand

Defined in header <stdlib.h> void srand( unsigned seed ); Seeds the pseudo-random number generator used by rand() with the value seed. If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with srand(), it must produce the same sequence of values. srand() is not guaranteed to be thread-safe. Parameters seed - the seed value Return value (none). Notes Generally speaking, the pseudo-random

nextafter

Defined in header <math.h> float nextafterf( float from, float to ); (1) (since C99) double nextafter( double from, double to ); (2) (since C99) long double nextafterl( long double from, long double to ); (3) (since C99) float nexttowardf( float from, long double to ); (4) (since C99) double nexttoward( double from, long double to ); (5) (since C99) long double nexttowardl( long double from, long double to ); (6) (since C99)

NULL

Defined in header <stddef.h> Defined in header <string.h> Defined in header <wchar.h> Defined in header <time.h> Defined in header <locale.h> Defined in header <stdio.h> #define NULL /*implementation-defined*/ Expands into implementation-defined null-pointer constant. Example #include <stdlib.h> struct S; void(*f)() = NULL; int main(void) { char *ptr = malloc(sizeof(char)*10); if (pt

rewind

Defined in header <stdio.h> void rewind( FILE *stream ); Moves the file position indicator to the beginning of the given file stream. The function is equivalent to fseek(stream, 0, SEEK_SET);, except that end-of-file and error indicators are cleared. The function drops any effects from previous calls to ungetc. Parameters stream - file stream to modify Return value (none). Example This example shows how to read a file twice. #include <stdio.h> char

strcspn

Defined in header <string.h> size_t strcspn( const char *dest, const char *src ); Returns the length of the maximum initial segment of the null-terminated byte string pointed to by dest, that consists of only the characters not found in the null-terminated byte string pointed to by src. The behavior is undefined if either dest or src is not a pointer to a null-terminated byte string. Parameters dest - pointer to the null-terminated byte string to be analyzed src

btowc

Defined in header <wchar.h> wint_t btowc( int c ); (since C95) Widens a single-byte character c (reinterpreted as unsigned char) to its wide character equivalent. Most multibyte character encodings use single-byte codes to represent the characters from the ASCII character set. This function may be used to convert such characters to wchar_t. Parameters c - single-byte character to widen Return value WEOF if c is EOF. wide character representation of c if (unsig

towlower

Defined in header <wctype.h> wint_t towlower( wint_t wc ); (since C95) Converts the given wide character to lowercase, if possible. Parameters wc - wide character to be converted Return value Lowercase version of wc or unmodified wc if no lowercase version is listed in the current C locale. Notes Only 1:1 character mapping can be performed by this function, e.g. the Greek uppercase letter 'Σ' has two lowercase forms, depending on the position in a word: 'σ'

wcscspn

Defined in header <wchar.h> size_t wcscspn( const wchar_t* dest, const wchar_t* src ); (since C95) Returns the length of the maximum initial segment of the wide string pointed to by dest, that consists of only the characters not found in wide string pointed to by src. Parameters dest - pointer to the null-terminated wide string to be analyzed src - pointer to the null-terminated wide string that contains the characters to search for Return value The leng