----- Original Message ----- From: "Peter L. Peres" To: Sent: Wednesday, March 20, 2002 10:04 AM Subject: Re: [PIC]: displaying a value on LCD > >not knowing much about the C compiler being used, how about: > > > >void my_lcd_putc(byte c) > >{ > > lcd_send_byte(rs,c); > >} > > > >int d; > >void main() > >{ > > printf(my_lcd_putc, "Here is an integer: %d", d) > >} > > Uhh, Bob, what compiler was this code for if Imay ask ? > > Peter I really don't know, but it had some strange way of passing a function as the first parameter of printf to define a sink for the characters generated. Wierd, huh? -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body