I was Looking through the CCS compiler manual and I can't find the printf format for printing a 32 bit number, int32.
is it possible to print a int32?
int32 test;
void test()
{
test++;
printf("%what\n\r,test);
}
Also, any ideas on saving the 32-bit number to e2 rom.
Thanks!!
-A troubled software engineer
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Tue Oct 19, 2004 4:38 pm
Quote:
Outputs a string of characters to either the standard RS-232 pins (first two forms) or to a specified function. Formatting is in accordance with the string argument. When variables are used this string must be a constant. The % character is used within the string to indicate a variable value is to be formatted and output. Longs in the printf may be 16 or 32 bit. A %% will output a single %. Formatting rules for the % follows.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum