Re: [cc65] assembly functions

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2004-01-03 19:07:30


On Saturday 03 January 2004 18:54, carlos wrote:
> Hello,
>
> does printf("%hu", unsigned_char_var);
> outputs an short unsigned int?
> Or should i use printf("%hu", unsigned_short_var); , which means that i
> would have to change the
> variable declaration.

%hu ?! wtf :) (is that even valid? :=P)

generally all arguments to printf are promoted to (int)...however if
the variable itself is a char, it ofcourse stays a char.

gpz

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2004-01-03 19:02:35 CET