Difference between scanf() and strtol() / strtod() in parsing numbers

后端 未结 8 1601
陌清茗
陌清茗 2020-12-05 20:28

Note: I completely reworked the question to more properly reflect what I am setting the bounty for. Please excuse any inconsistencies with already-given ans

8条回答
  •  借酒劲吻你
    2020-12-05 21:08

    I don't believe the parsing is allowed to produce different results. The Plaugher reference is just pointing out that the strtol() implementation might be a different, more efficient version as it has complete access to the entire string.

提交回复
热议问题