ecvt_r

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

ecvt_r, fcvt_r, qecvt_r, qfcvt_r - 浮動小数点数の文字列への変換  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#include <stdlib.h>

[[deprecated]] int ecvt_r(double number, int ndigits,
                          int *restrict decpt, int *restrict sign,
                          char *restrict buf, size_t size);
[[deprecated]] int fcvt_r(double number, int ndigits,
                          int *restrict decpt, int *restrict sign,
                          char *restrict buf, size_t size);

[[deprecated]] int qecvt_r(long double number, int ndigits,
                          int *restrict decpt, int *restrict sign,
                          char *restrict buf, size_t size);
[[deprecated]] int qfcvt_r(long double number, int ndigits,
                          int *restrict decpt, int *restrict sign,
                          char *restrict buf, size_t size);

glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):

ecvt_r(), fcvt_r(), qecvt_r(), qfcvt_r():

    /* glibc >= 2.19: */ _DEFAULT_SOURCE
        || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
 

説明

The functions ecvt_r(), fcvt_r(), qecvt_r(), and qfcvt_r() are identical to ecvt(3), fcvt(3), qecvt(3), and qfcvt(3), respectively, except that they do not return their result in a static buffer, but instead use the supplied buf of size size. See ecvt(3) and qecvt(3).  

返り値

これらの関数は成功すると 0 を、それ以外は -1 を返す。  

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
ecvt_r(), fcvt_r(), qecvt_r(), qfcvt_r() Thread safetyMT-Safe
 

標準規格

GNU.  

注意

これらの関数は廃止された。代わりに sprintf(3) の使用を推奨する。  

関連項目

ecvt(3), qecvt(3), sprintf(3)


 

Index

名前
ライブラリ
書式
説明
返り値
属性
標準規格
注意
関連項目

This document was created by man2html, using the manual pages.