converting an int to char*
Posted
by Alexander
on Stack Overflow
See other posts from Stack Overflow
or by Alexander
Published on 2010-04-15T02:27:21Z
Indexed on
2010/04/15
2:33 UTC
Read the original article
Hit count: 372
This is a very very basic question and I know one way is to do the following:
char buffer[33];
itoa(aq_width, buffer,10);
where aq_width is the int, but then I can't guarantee what size of buffer I would need in order to do this... I can always allocate a very large buffer size, but that wouldn't be very nice... any other pretty and simple way to do this?
© Stack Overflow or respective owner