OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / gcvt.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sat Jul 24 19:32:25 1993 by Rik Faith (faith@cs.unc.edu)
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH GCVT 3 2010\-09\-20 "" "Linux Programmer's Manual"
36 .SH 名前
37 gcvt \- 浮動小数点数を文字列へ変換する
38 .SH 書式
39 .nf
40 \fB#include <stdlib.h>\fP
41 .sp
42 \fBchar *gcvt(double \fP\fInumber\fP\fB, size_t \fP\fIndigit\fP\fB, char *\fP\fIbuf\fP\fB);\fP
43 .fi
44 .sp
45 .in -4n
46 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
47 .in
48 .sp
49 \fBgcvt\fP():
50 .ad l
51 .PD 0
52 .RS 4
53 .TP  4
54 glibc 2.12 以降:
55 .nf
56 _SVID_SOURCE ||
57     (_XOPEN_SOURCE\ >=\ 500 ||
58         _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) &&
59     !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600)
60 .fi
61 .TP  4
62 glibc 2.12 より前:
63 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE &&
64 _XOPEN_SOURCE_EXTENDED
65 .RE
66 .PD
67 .ad b
68 .SH 説明
69 関数 \fBgcvt\fP()  は、 \fInumber\fP を、最短の長さの NULL 終端された ASCII 文字列へ変換し、変換後の文字列を \fIbuf\fP
70 に格納する。 \fBprintf\fP(3)  の F フォーマットや E フォーマットのように \fIndigit\fP 桁の 有効数字を生成する。
71 .SH 返り値
72 関数 \fBgcvt\fP()  は文字列 \fIbuf\fP へのポインタを返す。
73 .SH 準拠
74 POSIX.1\-2001 では、 この関数は「過去の名残 (LEGACY)」と位置付けられている。 POSIX.1\-2008 では、 \fBgcvt\fP()
75 の仕様は削除され、 代わりに \fBsprintf\fP(3)  を使用することが推奨されている (\fBsnprintf\fP(3)
76 の方が適切かもしれないが)。
77 .SH 関連項目
78 \fBecvt\fP(3), \fBfcvt\fP(3), \fBsprintf\fP(3)
79 .SH この文書について
80 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
81 である。プロジェクトの説明とバグ報告に関する情報は
82 http://www.kernel.org/doc/man\-pages/ に書かれている。