Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: gnu.gcc Subject: Re: gcc 1.34, can't printf "%" Message-ID: <1263@ruuinf.cs.ruu.nl> Date: 20 Apr 89 08:39:04 GMT References: <8904192118.AA09440@garnet.berkeley.edu> Sender: piet@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, University of Utrecht, Holland Lines: 16 In-reply-to: rusty@GARNET.BERKELEY.EDU In article <8904192118.AA09440@garnet.berkeley.edu>, rusty@GARNET writes: `The following program ` `main() { ` printf("\%d\n"); `} ` `gets the complaint "warning: unknown escape sequence `\%'". Is there `some command-line flag I can use or is this a bug? Maybe you mean "\\%d\n" or "%%d\n" (depends on your desire to print also the \). -- Piet van Oostrum, Dept of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)