Anyone any thought son this...

I'm trying to print out and UInt32
The code below used to work fine...... but does not now!

void TimeStamp(void)
{

UInt32 jtimeInSeconds;
UInt32  value;
char dateBuffer[30];

jtimeInSeconds = TimGetSeconds ();
StrPrintF(dateBuffer,"%lu", jtimeInSeconds);


}
(I think since I moved to CW8.1)

According to debugger etc etc

jtimeInSeconds  = 3101474574
but the value StrPrintF'd into my buffer ends up as "-1193492722"
Its as though StrPrintF has noticed its an unsigned long.

Ive even gone back to code that did work but thats broke,,,,,,,,

Maybe Ive missed some exciting compiler flag....

Or is this yet another fantastic codewarrior feature!

Jon



void TimeStampTempMemo(void)
{

UInt32 jtimeInSeconds;
UInt32  value;
char dateBuffer[30];

jtimeInSeconds = TimGetSeconds ();
StrPrintF(dateBuffer,"%lu", jtimeInSeconds);


}


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to