Message-Id: <3.0.5.32.19990811151252.007a0100@200.252.238.1> X-Sender: thiagofga AT 200 DOT 252 DOT 238 DOT 1 (Unverified) X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Wed, 11 Aug 1999 15:12:52 -0300 To: djgpp AT delorie DOT com From: "Thiago F.G. Albuquerque" Subject: "Printing uclock_t" and "uclock() < 0" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com 1) Quoting libc's documentation, "(...) `printf' cannot print a value of type `uclock_t', even though it is an integer value, because it is a 64-bit integer." But what about this: printf("%lld\n", uclock()); ? --------------------------------- 2) I ran this piece of code #include #include int main() { int i; for (i=0; i<20; i++) { printf("%lld\n", uclock()); } return 0; } And the output was: 0 2344 4706 -58025 -55437 -52861 -50285 -47706 -45697 -43150 -40577 -37922 -35342 -32767 -30191 -28242 -25667 -23090 -20514 -17861 Why is it printing negative values? Does it have to do with the fact that I am running from a Win95 DOS box? Regards, Thiago