View Single Post
  #13   Spotlight this post!  
Unread 04-02-2005, 10:49
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: strange warning when build program

Quote:
Originally Posted by PVC Pirates
I included user_common.h in user_routines.c, but I didn't know I needed to or should include it in user_routines.h.
That's because I mistyped...I meant to say user_routines_fast.c...you shouldn't include user_common.h in user_routines.h...

Quote:
Please tell me more about the typecasting of printf.
Eugene Brooks had a good explanation in this thread about casting variables and printf.
Quote:
Originally Posted by eugenebrooks
The default way in which arguments are pushed, for routines
that do not have their arguments declared, is char.
He gives an example of how to perform the casting right above that explaination
Quote:
Originally Posted by eugenebrooks
Explicitly cast the integer arguments being provided to printf
to the desired type. If x is an int, y is a int, and z is a long,
use: printf("%d %d %lx\n", (int)x, (int)y, (long)z);