H
Huey
Hi All,
I saved hashed values of hex into buf[32], then buf becomes unreadable
by the means of calling puts(buf), printf("%s") and so on. Then, I
need to convert the hex in buf[] into a char buffer cbuf[32], by
calling sprintf(). I did:
sprintf(cbuf, "%x", buf);
No error! Just no working. Well, I used sprintf() a lot in format "%s"
"%d", and liked sprintf. It is my first time of using it in format
"%x". I wonder does format affect sprintf? Anybody can help me to get
this trick? Thanks!
Huey
I saved hashed values of hex into buf[32], then buf becomes unreadable
by the means of calling puts(buf), printf("%s") and so on. Then, I
need to convert the hex in buf[] into a char buffer cbuf[32], by
calling sprintf(). I did:
sprintf(cbuf, "%x", buf);
No error! Just no working. Well, I used sprintf() a lot in format "%s"
"%d", and liked sprintf. It is my first time of using it in format
"%x". I wonder does format affect sprintf? Anybody can help me to get
this trick? Thanks!
Huey