Change the %x to %d with the sprintf()
use %c when printing the chars
this code:
works fine for me..
But I think he was expending a[0] to be 31.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,947 posts
since Aug 2005