Prevent overflowing characters from entering input buffer when using fgets in C

后端 未结 0 1387
星月不相逢
星月不相逢 2021-02-09 10:46

When the user input is larger than the buffer size specified to fgets(), the excess characters after then seem to be stored in the input buffer. When I call f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题