Tom
Thu May 31 22:55:59 CDT 2007
Hi Eitan,
I think the %o (oh) method would work for you, but it won't put the '0' on
the front of the number.
http://www.cplusplus.com/reference/clibrary/cstdio/printf.html
You may also find this an interesting read:
http://www.cplusplus.com/doc/hex.html
Tom
"Eitan M" <no_spam_please@nospam_please.com> wrote in message
news:uDDcH$voHHA.4124@TK2MSFTNGP02.phx.gbl...
> Hello,
>
> How can I return the string value of octal value.
> i.e.
> int i;
> i = 9 (the octal value is 11),
>
> what should I put at the following line ? :
> sprintf(s, "% .... what should I put here ?", i);
>
>
> Thanks :)
>