Thread: About /r and /n...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113

    About /r and /n...

    So I know that /n is a newline, and /r is a carriage return. But what exactly are they used for, and who uses them?
    If you have a newline what is the point of a Carriage Return?
    And where and when should you use both /r/n, and when can you use just /n ?
    Do all OSs use them in text files and the like? or is it much more specific than that?

    --edit--
    oh and if anyone has just a reference about them, plz point me that way, because I can't find much about them in my C++ reference book ("The Complete Reference C++, Third Edition" by Herb Shildt)
    Last edited by Cobras2; 03-03-2003 at 08:05 PM.
    James G. Flewelling
    Rgistered Linux User #327359
    Athabasca University Student (BSc. CIS)

    http://catb.org/~esr/faqs/smart-questions.html
    http://catb.org/jargon/

    http://www.ebb.org/ungeek
    ---GEEK CODE---
    Version: 3.12
    GCS/IT/M d- s+:++ a-->->>+>++>+++>? C++++>$ UL++>++++$ P++>++++ L++>++++$
    E W++ N o? K? w++(--)>--- O? M? V? PS--(---) PE Y+ PGP? t 5? !X R(*)>++
    tv-->! b++(+++)>++++ DI? D+++(---)>++++$ G e*>++$ h++>*$ r!>+++ y?
    ----/GEEK CODE----
    upd: 2005-02-11

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help writing a program
    By alex1067 in forum C Programming
    Replies: 18
    Last Post: 04-04-2008, 11:33 PM
  2. Remove new line (/n) from string
    By 3saul in forum C Programming
    Replies: 3
    Last Post: 01-23-2006, 03:32 PM
  3. PIC16F876 's USART
    By Tombear in forum C Programming
    Replies: 4
    Last Post: 04-19-2002, 08:35 AM