At 10:42 AM 7/20/01 -0700, you wrote: >> From: Lawrence Lile [mailto:llile@toastmaster.com] > >... > >> > sprintf(string1,"Temperature: %d F"); >> >> This sprintf() must be a Hitech thing - CCS doesn't like it. > >sprintf() is an ANSI thing. I think it's in the original K&R C as well, but my >pre-ANSI K&R book is sitting at home and I'm at work, so I can't verify that. Here's the relevant passage out of the current ANSI/ISO standard: 7.19.6.6 The sprintf function Synopsis 1 #include int sprintf(char * restrict s, const char * restrict format, ...); Description 2 The sprintf function is equivalent to fprintf, except that the output is written into an array (specified by the argument s) rather than to a stream. A null character is written at the end of the characters written; it is not counted as part of the returned value. If copying takes place between objects that overlap, the behavior is undefined. Returns 3 The sprintf function returns the number of characters written in the array, not counting the terminating null character, or a negative value if an encoding error occurred. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu