strtod

标签

Cards List
#strtod

哦,看来在标准 C 中,无法以可移植的方式检查字符串转换为浮点数时的错误

Lobsters Hottest ↗ · 2026-10-10 缓存

博客文章探讨了标准 C 中 string-to-float 转换函数(strtod 等)无法可移植地检测转换错误的问题:标准依赖 math_errhandling,而 POSIX 总是要求设置 errno,二者兼容性存疑。

0 人收藏 0 人点赞
← 返回首页

提交意见反馈