*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> wcstod (3s)              
Title
Content
Arch
Section
 

Contents


wcstod(3S)							    wcstod(3S)


NAME    [Toc]    [Back]

     wcstod - convert wide-character string to double-precision	number

SYNOPSIS    [Toc]    [Back]

     #include <wchar.h>

     double wcstod (const wchar_t *nptr, wchar_t **endptr);

DESCRIPTION    [Toc]    [Back]

     wcstod returns as a double-precision floating-point number	the value
     represented by the	wide-character string pointed to by nptr.  This
     function scans the	string up to the first unrecognized character.

     wcstod recognizes an optional string of ``white-space'' characters	[as
     defined by	iswspace in wctype(3S)], then an optional sign,	then a string
     of	digits optionally containing a decimal-point character [as specified
     by	the current locale; see	setlocale(3C)],	then an	optional exponent part
     including an e or E followed by an	optional sign, followed	by an integer.

     If	the value of endptr is not (wchar_t **)NULL, a pointer to the
     character terminating the scan is returned	in the location	pointed	to by
     endptr.  If no number can be formed, *endptr is set to nptr, and zero is
     returned.

SEE ALSO    [Toc]    [Back]

      
      
     wctype(3S),

NOTE    [Toc]    [Back]

     Precision may be silently lost if the number of digits comprising the
     floating-point number (i.e., not including	the exponent) exceeds the
     value of the constant DBL_DIG (LDBL_DIG) in <float.h>.

DIAGNOSTICS    [Toc]    [Back]

     If	the correct value would	cause overflow,	+/-HUGE_VAL is returned
     (according	to the sign of the value), and errno is	set to ERANGE.

     If	the correct value would	cause underflow, zero is returned and errno is
     set to ERANGE.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
wcstod Tru64 Convert a wide-character string to a double-precision value
wcstold Tru64 Convert a wide-character string to a long double-precision value
strtod IRIX double-precision number
mbsrtowcs FreeBSD convert a character string to a wide-character string (restartable)
wcsrtombs FreeBSD convert a wide-character string to a character string (restartable)
wcstold FreeBSD convert string to float, double or long double
wcstof FreeBSD convert string to float, double or long double
wcstod FreeBSD convert string to float, double or long double
mbsrtowcs Linux convert a multibyte string to a wide character string
wcsrtombs Linux convert a wide character string to a multibyte string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service