chuckcorley

How to get carriage return AND linefeed in CW?

Discussion created by chuckcorley Employee on Sep 18, 2012
Latest reply on Sep 19, 2012 by chuckcorley

I've always had to edit format specifiers from \n to \n\r when importing code into CodeWarrior projects.  It's painful but tolerable.  Now I'm trying to work in C++ and the tradition cout << " ...."  << endl; is only generating the newline (\n); I'm not moving back to the start of line.  I don't want to change all endl entries to "\n\r" just to use CodeWarrior.  Is there a tool setting that makes \n equivalent to \n\r?  A search of the help system reveals a compiler option to swap \n and \r but I really need them both; on other platforms \n accomplishes both.

Outcomes