View Single Post
  #2   Spotlight this post!  
Unread 14-01-2006, 22:48
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
Re: Loop time for OperatorControl function? Debug blows...

I don't know what file that is (EasyC format?), but for printf's:

char byte;
int integer;
long longinteger;

printf("Byte: %d Int: %d Long: %d %d", (int)byte, (int)integer, (int)(longinteger >> 16), (int)(longinteger & 65535));

You can't really print longs using the provided functions (unless they are small enough that they can be completely stored in an integer variable). If you really need access to your longs, then you can split them into two integers (as you see above), and then piece them back together offline.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003