delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/08/08/07:32:52

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 8 Aug 2005 07:32:05 -0400
Message-Id: <200508081132.j78BW5Js001136@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <ac.78b93551.302874b8@aol.com> (Sterten@aol.com)
Subject: Re: uclock()
References: <ac DOT 78b93551 DOT 302874b8 AT aol DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> I get negative results from uclock:
>  
> printf("%i",uclock());

uclock() returns a long long.  You are printing it as if it were an
int.  Try this:

  printf("%lld", uclock());

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019