OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[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)