gpt4 book ai didi

c - 如何在扩展 Guile 的 C 代码中将字符串转换为 bignum?

转载 作者:太空宇宙 更新时间:2023-11-04 07:43:17 24 4
gpt4 key购买 nike

在 Guile 1.6.* 中,函数 scm_istring2number(char *str,int strlen,int radix) 完成这项工作。

但是,此功能在 Guile 1.8 中不存在。。我如何在 Guile 1.8 中完成相同的任务。

这不是微不足道的,因为函数 scm_string_to_number(SCM str,int radix) 不会转换大于 231-1 的数字(至少在 Guile 1.6 中是这样。* ).

最佳答案

根据 1.8 ChangeLog,该函数已重命名为 scm_c_locale_stringn_to_number

关于c - 如何在扩展 Guile 的 C 代码中将字符串转换为 bignum?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/148079/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com