展示HN:SLFG:我们让Gets()变得安全。大家都说这不可能。
几十年来,C语言程序员一直禁止使用gets()函数。我们找到了一种解决方案。<p>两个简单的规则,四行代码,完美的安全性。<p>不再需要处理fgets()的复杂性,也不再有缓冲区溢出的问题。<p>了解更多信息: <a href="https://github.com/Ferki-git-creator/slfg" rel="nofollow">https://github.com/Ferki-git-creator/slfg</a>
查看原文
For decades, C programmers banned gets(). We found a way.<p>Two simple rules. Four lines of code. Perfect safety.<p>No more fgets() complexity. No more buffer overflows.<p>See how: <a href="https://github.com/Ferki-git-creator/slfg" rel="nofollow">https://github.com/Ferki-git-creator/slfg</a>