この日記はGNSで生成しています。 |
void GetMonthName( int month, char *retbuf ) { char *monthname[] = { "", "Jan", "Feb", "Mar", "Apr", ... }; strcpy( retbuf, monthname[month] ); }
_ これだと、わし的にはマイナス。fineな答えだと、こう。
void GetMonthName( int month, char *retbuf ) { static char *monthname[] = { "", "Jan", "Feb", "Mar", "Apr", ... }; strcpy( retbuf, monthname[month] ); }
_ どう違うかは、アセンブラソースを吐かせて確認するべし。答えはこちら\。
メールはこちらへ...[後藤浩昭 / Hiroaki GOTO / GORRY / gorry@hauN.org]