|
From: Greg C. <gch...@sb...> - 2010-06-29 10:46:22
|
On 2010-06-29 05:48Z, Vincent Torri wrote: > > http://msdn.microsoft.com/en-us/library/xdb9w69d%28VS.71%29.aspx That page says "The h, l, and L prefixes are Microsoft extensions when used with data of type char." > to get an unsigned char, i should use "%hc" as modifier (i think that > "Single-byte" means unsigned char, as "%c" is for char (being signed or > unsigned)) Then you're using a nonstandard extension. > then gcc reports that format "%hc" expects type 'short int *' but argument > 3 has type 'unsigned char *' And gcc warns that the code is nonstandard. > Am I doing something wrong or is there a bug in header files ? If you don't want gcc to give this warning, then inhibit it. |