Show HN: SLFG: 我们让 gets() 函数安全了。大家都说这不可能。

1作者: DenisDolya7 个月前
几十年来,C 程序员一直禁用 gets() 函数。我们找到了解决方案。<p>两条简单的规则。四行代码。完美安全。<p>不再需要 fgets() 函数的复杂性。不再有缓冲区溢出问题。<p>了解详情:<a href="https:&#x2F;&#x2F;github.com&#x2F;Ferki-git-creator&#x2F;slfg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Ferki-git-creator&#x2F;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:&#x2F;&#x2F;github.com&#x2F;Ferki-git-creator&#x2F;slfg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Ferki-git-creator&#x2F;slfg</a>