This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem on using %x for sprintf( )

Hi, Everybody,
Is there anyone have the same problems while using %x as the output type for sprintf()? The outputs have the following sequences...
0 1 2 3 4 5 6 7 8 9 @ a b c d e
But it should be...
0 1 2 3 4 5 6 7 8 9 a b c d e f

Codes:

    for(i=0;i<16;i++) {
        sprintf(Buf,"%x",(int)i);//%X has the same problem.
    }

Note: My target links c51s.lib. I have download 7.20 version.

0