1ECVT_R(3)                  Linux Programmer's Manual                 ECVT_R(3)
2
3
4

NAME

6       ecvt_r, fcvt_r, qecvt_r, qfcvt_r - convert a floating-point number to a
7       string
8

SYNOPSIS

10       #include <stdlib.h>
11
12       int ecvt_r(double number, int ndigits, int *decpt,
13                  int *sign, char *buf, size_t len);
14
15       int fcvt_r(double number, int ndigits, int *decpt,
16                  int *sign, char *buf, size_t len);
17
18       int qecvt_r(long double number, int ndigits, int *decpt,
19                  int *sign, char *buf, size_t len);
20
21       int qfcvt_r(long double number, int ndigits, int *decpt,
22                  int *sign, char *buf, size_t len);
23
24   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
25
26       ecvt_r(), fcvt_r(), qecvt_r(), qfcvt_r(): _SVID_SOURCE || _BSD_SOURCE
27       || _XOPEN_SOURCE >= 500
28

DESCRIPTION

30       The functions ecvt_r(), fcvt_r(), qecvt_r() and qfcvt_r() are identical
31       to ecvt(3), fcvt(3), qecvt(3) and qfcvt(3), respectively,  except  that
32       they do not return their result in a static buffer, but instead use the
33       supplied buf of size len.  See ecvt(3) and qecvt(3).
34

RETURN VALUE

36       These functions return 0 on success, and -1 otherwise.
37

CONFORMING TO

39       These functions are GNU extensions.
40

NOTES

42       These functions are obsolete.  Instead, sprintf(3) is recommended.
43

SEE ALSO

45       ecvt(3), qecvt(3), sprintf(3)
46

COLOPHON

48       This page is part of release 3.22 of the Linux  man-pages  project.   A
49       description  of  the project, and information about reporting bugs, can
50       be found at http://www.kernel.org/doc/man-pages/.
51
52
53
54GNU                               2007-07-26                         ECVT_R(3)
Impressum