CVTINF 3CW "26 February 2007" "mathcw-1.00"

Table of contents


NAME

cvtinff, cvtinf, cvtinfl, cvtinfw, cvtinfq, cvtinfll, cvtinfdf, cvtinfd, cvtinfdl, cvtinfdll - convert Infinity string to number

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>
#include <cvticw.h>

extern float cvtinff (const char *s, char **endptr);

extern double cvtinf (const char *s, char **endptr);

extern long double cvtinfl (const char *s, char **endptr);

extern __float80 cvtinfw (const char *s, char **endptr);

extern __float128 cvtinfq (const char *s, char **endptr);

extern long_long_double cvtinfll (const char *s, char **endptr);

extern decimal_float cvtinfdf (const char *s, char **endptr);

extern decimal_double cvtinfd (const char *s, char **endptr);

extern decimal_long_double cvtinfdl (const char *s, char **endptr);

extern decimal_long_long_double cvtinfdll (const char *s, char **endptr);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Convert a floating-point Infinity string to a number. The only acceptable strings are infinity and inf, but lettercase is not significant. Any leading sign must be handled separately.

RETURN VALUES

Return the converted number using the infty() function, or zero if the string is not recognized. If endptr is not NULL, set the pointer to which it points to the address of the character following the last character successfully converted. With suitable conventions for value delimiters, it is then possible to determine whether the value is erroneous or not.

Conversion of Infinity strings does not set errno.


ERRORS

None.

SEE ALSO

cvtia(3CW), cvtid(3CW), cvtig(3CW), cvtih(3CW), cvtio(3CW), cvtnan(3CW), cvtob(3CW), cvtod(3CW), cvtog(3CW), cvtoh(3CW), cvton(3CW), cvtoo(3CW), infty(3CW) printf(3CW), scanf(3CW), strtod(3), strtof(3), strtold(3).