找回密码
 注册
查看: 543|回复: 1

为什么不给用gets函数??

[复制链接]
发表于 2004-3-1 00:09:35 | 显示全部楼层 |阅读模式
出现:
/tmp/cc3SSYvm.o(.text+0x40): In function `main':
: the `gets' function is dangerous and should not be used.

怎样才能用呢?
发表于 2004-3-1 09:49:12 | 显示全部楼层
maybe overflow

use fgets instead
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-19 08:20 , Processed in 0.026811 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表