OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / 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  2007-07-26 "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 .nf
33 .B #include <stdlib.h>
34 .sp
35 .BI "int ecvt_r(double " number ", int " ndigits ", int *" decpt ,
36 .BI "           int *" sign ", char *" buf ", size_t " len );
37 .sp
38 .BI "int fcvt_r(double " number ", int " ndigits ", int *" decpt ,
39 .BI "           int *" sign ", char *" buf ", size_t " len );
40 .sp
41 .BI "int qecvt_r(long double " number ", int " ndigits ", int *" decpt ,
42 .BI "           int *" sign ", char *" buf ", size_t " len );
43 .sp
44 .BI "int qfcvt_r(long double " number ", int " ndigits ", int *" decpt ,
45 .BI "           int *" sign ", char *" buf ", size_t " len );
46 .fi
47 .sp
48 .in -4n
49 Feature Test Macro Requirements for glibc (see
50 .BR feature_test_macros (7)):
51 .in
52 .sp
53 .ad l
54 .BR ecvt_r (),
55 .BR fcvt_r (),
56 .BR qecvt_r (),
57 .BR qfcvt_r ():
58 .RS 4
59 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
60 .RE
61 .ad b
62 .SH DESCRIPTION
63 The functions
64 .BR ecvt_r (),
65 .BR fcvt_r (),
66 .BR qecvt_r ()
67 and
68 .BR qfcvt_r ()
69 are identical to
70 .BR ecvt (3),
71 .BR fcvt (3),
72 .BR qecvt (3)
73 and
74 .BR qfcvt (3),
75 respectively, except that they do not return their result in a static
76 buffer, but instead use the supplied
77 .I buf
78 of size
79 .IR len .
80 See
81 .BR ecvt (3)
82 and
83 .BR qecvt (3).
84 .SH "RETURN VALUE"
85 These functions return 0 on success, and \-1 otherwise.
86 .SH "CONFORMING TO"
87 These functions are GNU extensions.
88 .SH NOTES
89 These functions are obsolete.
90 Instead,
91 .BR sprintf (3)
92 is recommended.
93 .SH "SEE ALSO"
94 .BR ecvt (3),
95 .BR qecvt (3),
96 .BR sprintf (3)