NAME
ecvtr, fcvtr, qecvtr, qfcvtr - convert a floating-point number to a string SYNOPSIS
#include
int ecvtr(double number, int ndigits, int *decpt, int *sign, char *buf, sizet len); int fcvtr(double number, int ndigits, int *decpt, int *sign, char *buf, sizet len); int qecvtr(long double number, int ndigits, int *decpt, int *sign, char *buf, sizet len); int qfcvtr(long double number, int ndigits, int *decpt, int *sign, char *buf, sizet len); Feature Test Macro Requirements for glibc (see featuretestmacros(7)): ecvtr(), fcvtr(), qecvtr(), qfcvtr(): SVIDSOURCE || BSDSOURCE || XOPENSOURCE >= 500 DESCRIPTION The functions ecvtr(), fcvtr(), qecvtr() and qfcvtr() are identical to ecvt(3), fcvt(3), qecvt(3) and qfcvt(3), respectively, except that they do not return their result in a static buffer, but instead use the supplied buf of size len. See ecvt(3) and qecvt(3). RETURN VALUE These functions return 0 on success, and -1 otherwise. ATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ┌─────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├─────────────────────┼───────────────┼─────────┤
│ecvtr(), fcvtr(), │ Thread safety │ MT-Safe │ │qecvtr(), qfcvtr() │ │ │ └─────────────────────┴───────────────┴─────────┘ CONFORMING TO These functions are GNU extensions. NOTES These functions are obsolete. Instead, sprintf(3) is recommended. SEE ALSO ecvt(3), qecvt(3), sprintf(3) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2007-07-26 ECVTR(3)