1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" This replaces an earlier man page written by Walter Harms
26 .\" <walter.harms@informatik.uni-oldenburg.de>.
28 .\" Corrected return types; from Fabian; 2004-10-05
30 .TH ECVT_R 3 2007-07-26 "GNU" "Linux Programmer's Manual"
32 ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- convert a floating-point number to a string
35 .B #include <stdlib.h>
37 .BI "int ecvt_r(double " number ", int " ndigits ", int *" decpt ,
38 .BI " int *" sign ", char *" buf ", size_t " len );
40 .BI "int fcvt_r(double " number ", int " ndigits ", int *" decpt ,
41 .BI " int *" sign ", char *" buf ", size_t " len );
43 .BI "int qecvt_r(long double " number ", int " ndigits ", int *" decpt ,
44 .BI " int *" sign ", char *" buf ", size_t " len );
46 .BI "int qfcvt_r(long double " number ", int " ndigits ", int *" decpt ,
47 .BI " int *" sign ", char *" buf ", size_t " len );
51 Feature Test Macro Requirements for glibc (see
52 .BR feature_test_macros (7)):
61 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
77 respectively, except that they do not return their result in a static
78 buffer, but instead use the supplied
87 These functions return 0 on success, and \-1 otherwise.
89 These functions are GNU extensions.
91 These functions are obsolete.