On Thu, Mar 13, 2008 at 1:15 PM, xiaoxinchen1989
<[EMAIL PROTECTED]> wrote:

>   I want to change a integer into string,such as 1213 to "1213",first i want
> to use itoa(s, 1213, 10) ,but the itoa is not a standard function, can you 
> tell
> me how to do it?

char s_num[ENOUGH];
int i_num = 1213;
snprintf(s_num, sizeof s_num, "%d", i_num);


-- 
PJH

A man walks into a bakery, points and the girl behind the counter
"Is that a macaroon or a meringue?"
"No, you're right, it's a macaroon."

Reply via email to