typedef unsigned int U32;
.....
U32 w;
U32 h;
U32 s;
sprintf (str, "% uX% uX% c", w, h, s);
% c
how can it ? Front two should be the same, with % u right
------ Solution ------------------------------ --------------
% c to print a character chant , controlled ascii table
example s is equal to 65 , print it out is A
------ For reference only ------------------------- --------------
that bug chant
------ For reference only ----------------- ----------------------
should not a bug, that is so written , and the program is released , and no problem running
------ For reference only --------------- ------------------------
If s in the range 0 to 255 should be no problem
mean look at this
Perhaps s values may be visible characters such as 0-9A-Za-z so
没有评论:
发表评论