ustrtod (3) - Linux Manuals
ustrtod: Converts a string into a floating point number. Allegro game programming library.
Command to display ustrtod
manual in Linux: $ man 3 ustrtod
NAME
ustrtod - Converts a string into a floating point number. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
double ustrtod(const char *s, char **endp);
DESCRIPTION
This function converts as many characters of `s' that look like a floating
point number into one, and sets `*endp' to point to the first unused
character, if `endp' is not a NULL pointer. Example:
char *endp, *string = "456.203 askdfg";
double number = ustrtod(string, &endp);
RETURN VALUE
Returns the string converted as a value of type `double'. If nothing was
converted, returns zero with *endp pointing to the beginning of s.
Pages related to ustrtod
- ustrtok (3) - Retrieves tokens from a string. Allegro game programming library.
- ustrtok_r (3) - Reentrant function to retrieve tokens from a string. Allegro game programming library.
- ustrtol (3) - Converts a string into an integer. Allegro game programming library.
- ustr (3) - ustr string library functions
- ustr_const (3) - ustr string library constants
- ustrcat (3) - Concatenates a string to another one. Allegro game programming library.
- ustrchr (3) - Finds the first occurrence of a character in a string. Allegro game programming library.
- ustrcmp (3) - Compares two strings. Allegro game programming library.
- ustrcpy (3) - Copies a string into another one. Allegro game programming library.