rept0id/ratatoi

Ratatoi 是一个 C 语言库,它像 atoi 一样封装了 stdlibstrtol,但它很“邪恶”。

如果检测到溢出,它会调用 abort(),导致程序崩溃并产生 Aborted (core dumped)

这种方式下,你将内存安全置于优先级之上,而不是在错误的状态下静默运行,且无需每次都手动调用 strtol 并检查错误。

关于

🐀🥄🍲 一个“邪恶”的 atoi,在必要时会崩溃(C 语言库)。

资源

Stars

Watchers

Forks

Report repository

Releases

No releases published

Packages 0

No packages published

语言

文件