Why is the fgets function deprecated?

后端 未结 2 1973
予麋鹿
予麋鹿 2020-11-29 05:47

From The GNU C Programming Tutorial:

The fgets (\"file get string\") function is similar to the gets function. This function is dep

2条回答
  •  醉梦人生
    2020-11-29 06:23

    This is just GNU propaganda. In no official sense is fgets deprecated. gets however is dangerous and deprecated.

提交回复
热议问题