Strtodf - Analog Devices VISUALDSP++ 3.5 Manual

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

Advertisement

C Run-Time Library Reference

strtodf

convert string to float
Synopsis
#include <stdlib.h>
float strtodf(const char *nptr, char **endptr)
Description
The
function extracts a value from the string pointed to by
strtodf
and returns the value as a
point to a string that represents either a decimal floating-point number or
a hexadecimal floating-point number. Either form of number may be pre-
ceded by a sequence of whitespace characters (as determined by the
function) that the function ignores.
isspace
A decimal floating-point number has the form:
[sign] [digits] [.digits] [{e|E} [sign] [digits]
The
token is optional and is either plus ( + ) or minus ( – ); and dig-
sign
its are one or more decimal digits. The sequence of digits may contain a
decimal point ( . ).
The decimal digits can be followed by an exponent, which consists of an
introductory letter (
exponent part nor a decimal point appears, a decimal point is assumed to
follow the last digit in the string.
The form of a hexadecimal floating-point number is:
[sign] [{0x}|{0X}] [hexdigs] [.hexdigs] [{p|P} [sign] [digits]]
A hexadecimal floating-point number may start with an optional plus ( + )
or minus ( – ) followed by the hexadecimal prefix
sequence must be followed by one or more hexadecimal characters that
optionally contain a decimal point ( . ).
3-138
. The
float
or
) and an optionally signed integer. If neither an
e
E
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
function expects
strtodf
or
0x
0X
for ADSP-219x DSPs
,
nptr
to
nptr
]
. This character

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?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents