1ustrtod(3)                      Allegro manual                      ustrtod(3)
2
3
4

NAME

6       ustrtod  - Converts a string into a floating point number. Allegro game
7       programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       double ustrtod(const char *s, char **endp);
14

DESCRIPTION

16       This function converts as many characters  of  `s'  that  look  like  a
17       floating  point number into one, and sets `*endp' to point to the first
18       unused character, if `endp' is not a NULL pointer. Example:
19
20          char *endp, *string = "456.203 askdfg";
21          double number = ustrtod(string, &endp);
22

RETURN VALUE

24       Returns the string converted as a value of type  `double'.  If  nothing
25       was converted, returns zero with *endp pointing to the beginning of s.
26
27

SEE ALSO

29       uconvert(3), ustrtol(3), uatof(3)
30
31
32
33Allegro                          version 4.2.2                      ustrtod(3)
Impressum