A pointer to a read-only wide-character string, where each character is of type `wchar_t`. Used for representing text in wide-character encoding to support extended character sets, such as Unicode. The string is null-terminated, with the terminator being a `wchar_t` with value 0.
1st Parameter
Pointer to the null-terminated wide-character string to be converted.
Pointer to a pointer to a wide character. It is set to the character in `nptr` where the conversion stopped.
Read more about parameters of wcstod32 in parameters section
The wcstod32function in C language Converts the initial portion of a wide character string to a decimal floating-point number with 32-bit precision.
wcstod32 converts the initial portion of the wide-character string pointed to by nptr to a _Decimal32 representation. It follows the same rules as wcstod but produces a decimal floating-point result with 32-bit precision.
The wcstod32function takes 2
parameters:
•
const wchar_t * `nptr`: Pointer to the null-terminated wide-character string to be converted.
•
wchar_t ** `endptr`: Pointer to a pointer to a wide character. It is set to the character in `nptr` where the conversion stopped.
Converts the initial part of the wide-character string `nptr` to a `_Decimal32` value. If `endptr` is not `NULL`, it points to the first character after the number that was converted.
The wcstod32 function return value :
Returns the converted _Decimal32 value
If no conversion could be performed, 0
0 is returned
If the correct value is outside the range of representable values, ±HUGE_VAL_D32 is returned (according to the sign of the value), and the value of the macro ERANGE is stored in errno
Output
This example demonstrates the basic usage of wcstod32 to convert a wide string to a _Decimal32 value. Note that decimal floating-point support is optional and may not be available on all systems.