]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/ecvt_r.3
Change itacised function names and page xrefs to bold
[thirdparty/man-pages.git] / man3 / ecvt_r.3
1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" This replaces an earlier man page written by Walter Harms
24 .\" <walter.harms@informatik.uni-oldenburg.de>.
25 .\"
26 .\" Corrected return types; from Fabian; 2004-10-05
27 .\"
28 .TH ECVT_R 3 2004-10-05 "GNU" "Linux Programmer's Manual"
29 .SH NAME
30 ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- convert a floating-point number to a string
31 .SH SYNOPSIS
32 .B #include <stdlib.h>
33 .sp
34 .BI "int ecvt_r(double " number ", int " ndigits ", int *" decpt ,
35 .BI "int *" sign ", char *" buf ", size_t " len );
36 .sp
37 .BI "int fcvt_r(double " number ", int " ndigits ", int *" decpt ,
38 .BI "int *" sign ", char *" buf ", size_t " len );
39 .sp
40 .BI "int qecvt_r(long double " number ", int " ndigits ", int *" decpt ,
41 .BI "int *" sign ", char *" buf ", size_t " len );
42 .sp
43 .BI "int qfcvt_r(long double " number ", int " ndigits ", int *" decpt ,
44 .BI "int *" sign ", char *" buf ", size_t " len );
45 .SH DESCRIPTION
46 The functions
47 .BR ecvt_r (),
48 .BR fcvt_r (),
49 .BR qecvt_r ()
50 and
51 .BR qfcvt_r ()
52 are identical to
53 .BR ecvt ,
54 .BR fcvt ,
55 .BR qecvt
56 and
57 .BR qfcvt ,
58 respectively, except that they do not return their result in a static
59 buffer, but instead use the supplied
60 .I buf
61 of size
62 .IR len .
63 See
64 .BR ecvt (3)
65 and
66 .BR qecvt (3).
67 .SH "RETURN VALUE"
68 These functions return 0 on success, and \-1 otherwise.
69 .SH NOTES
70 These functions are obsolete. Instead,
71 .BR sprintf ()
72 is recommended.
73 .SH "CONFORMING TO"
74 These functions are GNU extensions.
75 .SH "SEE ALSO"
76 .BR ecvt (3),
77 .BR qecvt (3),
78 .BR sprintf (3)