View Single Post
printf and \" issue
Old
  (#1)
Cpl. Shrike
ShrikeBot Coder/Moderator
 
Cpl. Shrike's Avatar
 
Status: Offline
Posts: 550
Join Date: Mar 2004
Location: The Netherlands
Default printf and \" issue - 14-05-2004

Howdy,

Im using this line of code in a CGI program this line prints an empty hmtl cell.

Code:
printf ("<TD width=\"40%\">&nbsp;</TD>")
edit/
the & n b s p ; is not showing up between the > < in the code tag
/edit

Well the thing is it compiled and worked fine using GCC on linux
No im trying to compile it in ecpilse work space. as far as i know eclipse just uses the GCC compiler however on build it complains with this message.

Unknown conversion type character `"'
In line 236 ( the line post above)

What confuses me is that it compiles/works on plain gcc and eclipse is complaining. Even while im using the escape char \ before the quote " char.

Is this line of code wrong after all. ?

Last edited by Cpl. Shrike; 14-05-2004 at 17:38..
  
Reply With Quote