I have done this before and for every \ character that you want to show
you must put \\.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeffrey D. Frey, Jr. Email:99frey@lab.cc.wmich.edu
or: freyj@iglou.com
242 Ernest Burnham Hall
Kalamazoo Mi, 49008-1042 Phone: (616) 387-1016
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Mon, 13 Mar 1995, Sean P. Mountcastle wrote:
> Sorry to bother everyone with this, but hopefully this is a quick
> question (I wouldn't be asking this, but my sysadmin here didn't install
> the man pages for gcc :( ).
> How does gcc handle \ and " in print statements? I'm trying to
> put some ASCII Art in my title screen that has a lot of \'s and one or
> two "'s
> I know in turbo C I can use \\ and \" but when I did this in gcc
> the test program didn't run correctly (though it didn't give me the
> error, unterminated char constant).
> Many thanks in advance,
>
> - Sean
>
This archive was generated by hypermail 2b30 : 12/07/00 PST