| [ CnUnix ] in KIDS 글 쓴 이(By): parsec ( 먼 소 류 ) 날 짜 (Date): 2002년 8월 27일 화요일 오후 12시 04분 38초 제 목(Title): Re: [Q] printf 등에서.. * 를 쓰세요. #define FILLCHAR 0 int getprecision(int i){ /* routines to calc precision */ /* ex) if (log10(i)<5) return 5; else return log10(i)+1; */ } ... printf("%**d", FILLCHAR, getprecision(i), i); ◇ ~~~_ _ ∴ ~|~| | _/__, SEP. 11. 2001 _ ∴∴ _ ~ | | \ ` Armorica under a tat ,-| `,-,_| |__ | | | A ______|_|__|_|___|__|| | |__|_|_____________________________________ |