I need to convert an unsigned long to a string in a base “b” in ascii.
I receive the long, and the base (0 < b < 16), and i need to set it in a buffer.
Any idea how to do that, without itoa()??
Cumps
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure – it’s trivial (sadly, I currently can’t compile the code so there are probably a couple of typos):