Last Update 2012/07/05
引数を符号なし8進数に変換します。
(例)
#include <stdio.h>
int main()
{
printf("o変換 : %o\n", 123);
printf("o変換 : %#o\n", 123); // #フラグで先頭に0を付ける
printf("o変換 : %o\n", -1);
return 0;
}
実行結果
o変換 : 173
o変換 : 0173
o変換 : 37777777777