Analog Devices VISUALDSP++ 3.5 Manual page 391

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

The hexadecimal digits are followed by a binary exponent that consists of
the letter
or
p
P
digits. The exponent is interpreted as a power of two that is used to scale
the fraction represented by the tokens
The first character that does not fit either form of number will stop the
scan. If
endptr
scan is stored at the location pointed to by
performed, the value of
.
endptr
Error Conditions
The
function returns a zero if no conversion can be made and a
strtod
pointer to the invalid string is stored in the object pointed to by
the correct value results in an overflow, a positive or negative (as appropri-
ate)
is returned. If the correct value results in an underflow, 0 is
HUGE_VAL
returned. The
flow or underflow.
Example
#include <stdlib.h>
char *rem;
double dd;
dd = strtod ("2345.5E4 abc",&rem);
/* dd = 2.3455E+7, rem = "abc" */
dd = strtod ("-0x1.800p+9,123",&rem);
/* dd = -768.0, rem = ",123"
See Also
atof, strtol,
strtoul
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
, an optional sign, and a non-empty sequence of decimal
is not NULL, a pointer to the character that stopped the
is stored at the location pointed to by
nptr
value is stored in
ERANGE
C/C++ Run-Time Library
[hexdigs] [.hexdigs]
. If no conversion can be
endptr
in the case of either an over-
errno
*/
.
. If
endptr
3-137

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents