qecvtのヘルプ・マニュアル
日本語 英語
qecvt --help
man qecvt
QECVT(3) Linux Programmer’s Manual QECVT(3)
名前
qecvt, qfcvt, qgcvt - 浮動小数点数の文字列への変換
書式
#include
char *qecvt(long double number, int ndigits, int *decpt, int *sign);
char *qfcvt(long double number, int ndigits, int *decpt, int *sign);
char *qgcvt(long double number, int ndigit, char *buf);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
qecvt(), qfcvt(), qgcvt(): _SVID_SOURCE || _BSD_SOURCE ||
_XOPEN_SOURCE >= 500
説明
関数 qecvt(), qfcvt(), qgcvt() は、それぞれ ecvt(3), fcvt(3), gcvt(3)
と同じである。引き数 number が long double 型である点だけが異なる。
準拠
SVr4. 多くの一般的な Unix には実装されていないが、SunOS には実装されて
いる。 libc4 と libc5 ではサポートされていないが、 glibc ではサポートさ
れている。
注意
これらの関数は廃止された。代わりに sprintf(3) の使用を推奨する。
関連項目
ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
GNU 2007-07-26 QECVT(3)
QECVT(3) Linux Programmer’s Manual QECVT(3)
NAME
qecvt, qfcvt, qgcvt - convert a floating-point number to a string
SYNOPSIS
#include
char *qecvt(long double number, int ndigits, int *decpt, int *sign);
char *qfcvt(long double number, int ndigits, int *decpt, int *sign);
char *qgcvt(long double number, int ndigit, char *buf);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
qecvt(), qfcvt(), qgcvt(): _SVID_SOURCE || _BSD_SOURCE ||
_XOPEN_SOURCE >= 500
DESCRIPTION
The functions qecvt(), qfcvt() and qgcvt() are identical to ecvt(3),
fcvt(3) and gcvt(3) respectively, except that they use a long double
argument number. See ecvt(3) and gcvt(3).
CONFORMING TO
SVr4. Not seen in most common Unix implementations, but occurs in
SunOS. Not supported by libc4 and libc5. Supported by glibc.
NOTES
These functions are obsolete. Instead, sprintf(3) is recommended.
SEE ALSO
ecvt(3), ecvt_r(3), gcvt(3), sprintf(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2007-07-26 QECVT(3)