Where i get this paramenters passed by printf? (HANDLE) Miguel ----- Original Message ----- From: Dr. Imre Bartfai To: Sent: Thursday, May 04, 2000 2:24 AM Subject: Re: PRINTF > Hi, > > it is true, but... there is a solution: > > printf has an optional argument which can be a function. I guess it is > easy to write a function which stores the passed characters to a character > array, and voila ... you've got a sprintf. > > Here is my $0.02. > > Regards, > Imre > > > On Wed, 3 May 2000, David Kott wrote: > > > >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. > > > > 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 > > > >