Do I add +1 to memory allocation in function after removing newline character in main?

前端 未结 0 1040
余生分开走
余生分开走 2021-01-26 06:11

If I prompt user to give filename as input, then check for and remove newline character do I still have to add +1 to strlen(filename) when allocating m

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