printf uses the function putch() to output data, you will have to catch it there Dennis > -----Original Message----- > From: WF [SMTP:wf@BLUSOFT.ORG.BR] > Sent: Thursday, 4 May 2000 0:56 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: PRINTF > > ----- Original Message ----- > From: David Kott > To: > Sent: Wednesday, May 03, 2000 11:42 AM > Subject: Re: PRINTF > > > > >You want to print to a string? Does the CCS compiler not have a > sprintf > > function? > > > > > >Mike > > > > > > > > >>How can i redirect the printf output of CCS C COMPILER for a string? > > >> > > >>Miguel > > > > No. The CCS PCM compiler does not come with a sprintf function. I too > > would also like to be able to print to a string. However, I ended up > > writing my own sprintf to handle my output when I needed it piped to > > something other than a serial port. > ---> CCS PCM only outputs printf's (puts, gets and the like as well) to a > serial > > port, software or silicon. > > > > To the LCD too! > > > > The printf "function" is handled directly by the compiler at > compile-time. > > The formatting string is parsed by the compiler.. there is no runtime > > interpretation. > > > > -d