GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FMTSTRTOD(3) FreeBSD Library Functions Manual FMTSTRTOD(3)

fmtstrtod, fmtcharstod  - convert text to numbers

#include <utf.h>
#include <fmt.h>

double fmtstrtod(char *nptr, char **rptr)

double fmtcharstod(int (*f)(void *), void *a)

Fmtstrtod converts a string pointed to by nptr to floating point representation and, if rptr is not zero, sets *rptr to point to the input character immediately after the string converted. Fmtstrtod recognizes an optional string of tabs and spaces, then an optional sign, then a string of digits optionally containing a decimal point, then an optional or followed by an optionally signed integer.

Fmtcharstod interprets floating point numbers in the manner of atof, but gets successive characters by calling (*f)(a). The last call to f terminates the scan, so it must have returned a character that is not a legal continuation of a number. Therefore, it may be necessary to back up the input stream one character after calling fmtcharstod.

https://9fans.github.io/plan9port/unix

fscanf(3)

Zero is returned if the beginning of the input string is not interpretable as a number; even in this case, rptr will be updated.

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.