OSDN Git Service

(split) LDP: Update releases to LDP v3.40.
[linuxjm/LDP_man-pages.git] / release / 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 .\"
30 .\" This file was generated with po4a. Translate the source file.
31 .\"
32 .\"*******************************************************************
33 .TH GCVT 3 2010\-09\-20 "" "Linux Programmer's Manual"
34 .SH 名前
35 gcvt \- 浮動小数点数を文字列へ変換する
36 .SH 書式
37 .nf
38 \fB#include <stdlib.h>\fP
39 .sp
40 \fBchar *gcvt(double \fP\fInumber\fP\fB, size_t \fP\fIndigit\fP\fB, char *\fP\fIbuf\fP\fB);\fP
41 .fi
42 .sp
43 .in -4n
44 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
45 .in
46 .sp
47 \fBgcvt\fP():
48 .ad l
49 .PD 0
50 .RS 4
51 .TP  4
52 glibc 2.12 以降:
53 .nf
54 _SVID_SOURCE ||
55     (_XOPEN_SOURCE\ >=\ 500 ||
56         _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) &&
57     !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600)
58 .fi
59 .TP  4
60 glibc 2.12 より前:
61 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE &&
62 _XOPEN_SOURCE_EXTENDED
63 .RE
64 .PD
65 .ad b
66 .SH 説明
67 関数 \fBgcvt\fP()  は、 \fInumber\fP を、最短の長さの NULL 終端された ASCII 文字列へ変換し、変換後の文字列を \fIbuf\fP
68 に格納する。 \fBprintf\fP(3)  の F フォーマットや E フォーマットのように \fIndigit\fP 桁の 有効数字を生成する。
69 .SH 返り値
70 関数 \fBgcvt\fP()  は文字列 \fIbuf\fP へのポインタを返す。
71 .SH 準拠
72 POSIX.1\-2001 では、 この関数は「過去の名残 (LEGACY)」と位置付けられている。 POSIX.1\-2008 では、 \fBgcvt\fP()
73 の仕様は削除され、 代わりに \fBsprintf\fP(3)  を使用することが推奨されている (\fBsnprintf\fP(3)
74 の方が適切かもしれないが)。
75 .SH 関連項目
76 \fBecvt\fP(3), \fBfcvt\fP(3), \fBsprintf\fP(3)
77 .SH この文書について
78 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
79 である。プロジェクトの説明とバグ報告に関する情報は
80 http://www.kernel.org/doc/man\-pages/ に書かれている。