The doesn't work, meant, it compiled and ran, but, the display got=20 filled with garbage. What I should have done is tried to debug that, and=20 running in MPLAB-SIM, I get the error: CORE-E0001: Stack over flow error occurred from instruction at 0x000c10 with this line: (one at a time) printf ((rom unsigned char*) "%2d %2d", month, day); or: printf ( "%2d %2d", month, day); and as suggested: (less the 2 single quotes), it ran, but the entire LCD=20 line was garbage. printf ((const rom far char'') "%2d %2d", month, day); On 8/19/2010 12:56 PM, John Temples wrote: > On Thu, 19 Aug 2010, Carl Denk wrote: > > =20 >> This works: >> >> printf ((rom unsigned int*)"integer output: %2u\0" ,month); >> =20 > If your goal is to suppress the "type qualifier mismatch" warning, the > correct cast is (const rom far char *). However, it doesn't really > matter nor does it affect whether your printf "works" or not. > > I'm not sure why you have a \0 at the end of your format string, but > it probably doesn't do what you think it does. > > =20 >> And this doesn't work, a first step is outputting, 2 variables, assuming >> once I got that, rest will follow pattern. >> printf ((rom unsigned int*)"integer output: %2u %2u\0" ,month, day); >> =20 > You haven't said what "doesn't work" means. You've declared month and > day as signed and are using an unsigned conversion specifier, but that > shouldn't make them "not work." > > =20 >> Was considering rebuilding the library as "FAR" , >> =20 > The library is already built as "far". > > -- > John W. Temples, III > =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .