[阅读: 615] 2004-12-23 07:30:12
fgets reads characters from stream into the string s. The function stops reading when it reads either n
- 1 characters or a newline character whichever comes first. fgets retains the newline character at the end of s. A null byte is appended to s to mark the end of the string.
这是BCB标准库函数的帮助说明,提到了会以换行符为结束标志给并会保留换行符到字串中。
上面贴子中我说的回车和换行是我理解错误,呵呵