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);
|