Skip to content
Haojian Wu edited this page Jul 6, 2013 · 1 revision

LF(Line Feed): \n = 0x0A, 换行符,表示下一行的意思

CR(Carriage Return): \r = 0x0D, 回车符,表示把光标移到当前行前

不同操作系统文本行结束的符号(End of Line, 简称EOL)是不一样的:

  • Windows: \r\n (CR+LF)
  • Linux: \n (LF)
  • Mac: \r (CR)

Tech-Notes

LLVM/Clang

C/C++

Linux

Vim

Tools

Others

Chromium-Dev tips

Clone this wiki locally