converting an int to char*
- by Alexander
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?