OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / gcvt.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sat Jul 24 19:32:25 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 Hiroaki Nagoya
30 .\"         all rights reserved.
31 .\" Translated Mon Feb 10 1997 by Hiroaki Nagoya <nagoya@is.titech.ac.jp>
32 .\" Updated & Modified Wed Feb 16 23:43:45 JST 2005
33 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\" Updated 2009-04-24, Akihiro MOTOKI, LDP v3.20
36 .\"
37 .TH GCVT 3 2009-03-15 "" "Linux Programmer's Manual"
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O gcvt \- convert a floating-point number to a string
41 gcvt \- ÉâÆ°¾®¿ôÅÀ¿ô¤òʸ»úÎó¤ØÊÑ´¹¤¹¤ë
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .nf
45 .B #include <stdlib.h>
46 .sp
47 .BI "char *gcvt(double " number ", size_t " ndigit ", char *" buf );
48 .fi
49 .sp
50 .in -4n
51 .\"O Feature Test Macro Requirements for glibc (see
52 .\"O .BR feature_test_macros (7)):
53 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
54 .RB ( feature_test_macros (7)
55 »²¾È):
56 .in
57 .sp
58 .BR gcvt ():
59 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500
60 .\"O .SH DESCRIPTION
61 .SH ÀâÌÀ
62 .\"O The
63 .\"O .BR gcvt ()
64 .\"O function converts \fInumber\fP to a minimal length null-terminated
65 .\"O ASCII string and stores the result in \fIbuf\fP.
66 .\"O It produces \fIndigit\fP significant digits in either
67 .\"O .BR printf (3)
68 .\"O F format or E format.
69 ´Ø¿ô
70 .BR gcvt ()
71 ¤Ï¡¢ \fInumber\fP ¤ò¡¢ºÇû¤ÎŤµ¤Î NULL ½ªÃ¼¤µ¤ì¤¿ ASCII
72 ʸ»úÎó¤ØÊÑ´¹¤·¡¢ÊÑ´¹¸å¤Îʸ»úÎó¤ò \fIbuf\fP ¤Ë³ÊǼ¤¹¤ë¡£
73 .BR printf (3)
74 ¤Î F ¥Õ¥©¡¼¥Þ¥Ã¥È¤ä E ¥Õ¥©¡¼¥Þ¥Ã¥È¤Î¤è¤¦¤Ë \fIndigit\fP ·å¤Î
75 Í­¸ú¿ô»ú¤òÀ¸À®¤¹¤ë¡£
76 .\"O .SH "RETURN VALUE"
77 .SH ÊÖ¤êÃÍ
78 .\"O The
79 .\"O .BR gcvt ()
80 .\"O function returns the address of the string pointed to
81 .\"O by \fIbuf\fP.
82 ´Ø¿ô
83 .BR gcvt ()
84 ¤Ïʸ»úÎó \fIbuf\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
85 .\"O .SH "CONFORMING TO"
86 .SH ½àµò
87 .\"O Marked as LEGACY in POSIX.1-2001.
88 POSIX.1-2001 ¤Ç¤Ï¡¢
89 ¤³¤Î´Ø¿ô¤Ï¡Ö²áµî¤Î̾»Ä (LEGACY)¡×¤È°ÌÃÖÉÕ¤±¤é¤ì¤Æ¤¤¤ë¡£
90 .\"O POSIX.1-2008 removes the specification of
91 .\"O .BR gcvt (),
92 .\"O recommending the use of
93 .\"O .BR sprintf (3)
94 .\"O instead (though
95 .\"O .BR snprintf (3)
96 .\"O may be preferable).
97 POSIX.1-2008 ¤Ç¤Ï¡¢
98 .BR gcvt ()
99 ¤Î»ÅÍͤϺï½ü¤µ¤ì¡¢
100 Âå¤ï¤ê¤Ë
101 .BR sprintf (3)
102 ¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¿ä¾©¤µ¤ì¤Æ¤¤¤ë
103 .RB ( snprintf (3)
104 ¤ÎÊý¤¬Å¬ÀÚ¤«¤â¤·¤ì¤Ê¤¤¤¬)¡£
105 .\"O .SH "SEE ALSO"
106 .SH ´ØÏ¢¹àÌÜ
107 .BR ecvt (3),
108 .BR fcvt (3),
109 .BR sprintf (3)