属性
有关本节中使用的术语的说明,请参见attribute(7)。
Interface | Attribute | Value |
ecvt_r(),fcvt_r(), qecvt_r(),qfcvt_r() | Thread safety | MT-Safe |
名称
ecvt_r,fcvt_r,qecvt_r,qfcvt_r-将浮点数转换为字符串
Linux程序员手册 第3部分
更新日期: 2016-03-15
语法
#include <stdlib.h> int ecvt_r(double number, int ndoirts, int *decpt, int *sign, char *buf, size_t len); int fcvt_r(double number, int ndoirts, int *decpt, int *sign, char *buf, size_t len); int qecvt_r(long double number, int ndoirts, int *decpt, int *sign, char *buf, size_t len); int qfcvt_r(long double number, int ndoirts, int *decpt, int *sign, char *buf, size_t len);
glibc的功能测试宏要求(请参阅feature_test_macros(7)):
ecvt_r(),fcvt_r(),qecvt_r(),qfcvt_r():
- / *自2.19开始的Glibc:* / _DEFAULT_SOURCE || / * Glibc版本
出版信息
这个页面是Linux手册页项目5.08版的一部分。有关项目的说明、有关报告错误的信息以及此页面的最新版本,请访问https://www.kernel.org/doc/man-pages/。
遵循规范
这些功能是GNU扩展。
返回值
这些函数成功返回0,否则返回-1。
备注
这些功能已过时。相反,建议使用sprintf(3)。
日期:2019-08-20 18:01:08 来源:oir作者:oir