阅读背景:

在C中如何编写适合OS的行尾字符?

来源:互联网 

Unix has \n, Mac was \r but is now \n and DOS/Win32 is \r\n. When creating a text file with C, how to ensure whichever end of line character(s) is appropriate to the OS gets used? Unix has \n, Mac was \r but is now \n and DOS/W




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: