C Programming on the IBM PC (C Programmers Reference Guide Series)

Wide-Character String Conversion Functions

The functions shown in the following table provide wide-character versions of the standard numeric and time conversion functions. These functions use the header <wchar.h>.

Function

char Equivalent

size_t wcsftime(wchar_t *str, size_t max,                            const wchar_t *fmt,                            const struct tm *ptr)

strftime( )In C99, str, fmt, and ptr are qualified by restrict.

double wcstod(const wchar_t *start,                          wchar_t **end);

strtod( )In C99, start and end are qualified by restrict.

float wcstof(const wchar_t * restrict start,                     wchar_t ** restrict end);

strtof( ) (Added by C99)

long double wcstold(const wchar_t *                            restrict start,                            wchar_t ** restrict end);

strtold( ) (Added by C99)

long int wcstol(const wchar_t *start,                           wchar_t **end,                           int radix)

strtol( )In C99, start and end are qualified by restrict.

long long int wcstoll(const wchar_t *                             restrict start,                             wchar_t ** restrict end,                             int radix)

strtoll( ) (Added by C99)

unsigned long int wcstoul(                           const wchar_t * restrict                           start,                           wchar_t ** restrict end,                           int radix)

strtoul( )In C99, start and end are qualified by restrict.

unsigned long long int wcstoull(                                   const wchar_t *start,                                   wchar_t **end,                                   int radix)

strtoull( ) (Added by C99)

Категории