OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / 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 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI
29 .\"         all rights reserved.
30 .\" Translated Sun Sep 22 09:46:55 2002
31 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
32 .\"
33 .\"WORD:        obsolete        廃止された
34 .\"
35 .TH ECVT_R 3  2007-07-26 "GNU" "Linux Programmer's Manual"
36 .\"O .SH NAME
37 .SH 名前
38 .\"O ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- convert a floating-point number to a string
39 ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- 浮動小数点数の文字列への変換
40 .\"O .SH SYNOPSIS
41 .SH 書式
42 .nf
43 .B #include <stdlib.h>
44 .sp
45 .BI "int ecvt_r(double " number ", int " ndigits ", int *" decpt ,
46 .BI "           int *" sign ", char *" buf ", size_t " len );
47 .sp
48 .BI "int fcvt_r(double " number ", int " ndigits ", int *" decpt ,
49 .BI "           int *" sign ", char *" buf ", size_t " len );
50 .sp
51 .BI "int qecvt_r(long double " number ", int " ndigits ", int *" decpt ,
52 .BI "           int *" sign ", char *" buf ", size_t " len );
53 .sp
54 .BI "int qfcvt_r(long double " number ", int " ndigits ", int *" decpt ,
55 .BI "           int *" sign ", char *" buf ", size_t " len );
56 .fi
57 .sp
58 .in -4n
59 .\"O Feature Test Macro Requirements for glibc (see
60 .\"O .BR feature_test_macros (7)):
61 glibc 向けの機能検査マクロの要件
62 .RB ( feature_test_macros (7)
63 参照):
64 .in
65 .sp
66 .ad l
67 .BR ecvt_r (),
68 .BR fcvt_r (),
69 .BR qecvt_r (),
70 .BR qfcvt_r ():
71 .RS 4
72 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
73 .RE
74 .ad b
75 .\"O .SH DESCRIPTION
76 .SH 説明
77 .\"O The functions
78 .\"O .BR ecvt_r (),
79 .\"O .BR fcvt_r (),
80 .\"O .BR qecvt_r ()
81 .\"O and
82 .\"O .BR qfcvt_r ()
83 .\"O are identical to
84 .\"O .BR ecvt (3),
85 .\"O .BR fcvt (3),
86 .\"O .BR qecvt (3)
87 .\"O and
88 .\"O .BR qfcvt (3),
89 .\"O respectively, except that they do not return their result in a static
90 .\"O buffer, but instead use the supplied
91 .\"O .I buf
92 .\"O of size
93 .\"O .IR len .
94 .\"O See
95 .\"O .BR ecvt (3)
96 .\"O and
97 .\"O .BR qecvt (3).
98 関数
99 .BR ecvt_r (),
100 .BR fcvt_r (),
101 .BR qecvt_r (),
102 .BR qfcvt_r ()
103 は、それぞれ
104 .BR ecvt (3),
105 .BR fcvt (3),
106 .BR qecvt (3),
107 .BR qfcvt (3)
108 と同じであるが、
109 静的バッファの代わりに、長さ
110 .I len
111 の指定された
112 .I buf
113 に結果を格納する点が異なる。
114 .BR ecvt (3),
115 .BR qecvt (3)
116 を参照のこと。
117 .\"O .SH "RETURN VALUE"
118 .SH 返り値
119 .\"O These functions return 0 on success, and \-1 otherwise.
120 これらの関数は成功すると 0 を、それ以外は \-1 を返す。
121 .\"O .SH "CONFORMING TO"
122 .\"O These functions are GNU extensions.
123 .SH 準拠
124 これらの関数は GNU による拡張である。
125 .\"O .SH NOTES
126 .SH 注意
127 .\"O These functions are obsolete.
128 .\"O Instead,
129 .\"O .BR sprintf (3)
130 .\"O is recommended.
131 これらの関数は廃止された。代わりに
132 .BR sprintf (3)
133 の使用を推奨する。
134 .\"O .SH "SEE ALSO"
135 .SH 関連項目
136 .BR ecvt (3),
137 .BR qecvt (3),
138 .BR sprintf (3)