rwyoung
Joined: 12 Nov 2003 Posts: 563 Location: Lawrence, KS USA
|
|
Posted: Wed Mar 08, 2006 5:10 pm |
|
|
But if you have a lot of calls that match
Code: | printf("%u", my_variable);
|
Then you could write
Code: | void my_printf_u(unsigned my_var)
{
printf("%u", my_var);
}
|
And write a similar one for each of the most common printfs you have in your code. May or may not save you code space, depends on how common your format strings are across all printfs _________________ Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month! |
|