strtol

strtof

#include <stdlib.h>long double strtof(const char * restrict start,                   char restrict ** restrict end);

strtof( ) was added by C99.

The strtof( ) function is similar to strtod( ) except that it returns a float value. If overflow occurs, then either HUGE_VALF or –HUGE_VALF is returned, and the global variable errno is set to ERANGE, indicating a range error. If start does not point to a number, no conversion takes place and zero is returned.

Related functions are atof( ), strtod( ), and strtold( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net