31st Fri
配列へのポインタへのキャスト
しばらく使ってなくて忘れそうになったのでメモ。
c>>
int n = CGColorGetNumberOfComponents(color);
float (comps)[n] = (float()[n])CGColorGetComponents(color);
<<--
C99は良いなあ。
posted by
genki on Fri 31 Oct 2008 at 15:43 with 0 comments
しばらく使ってなくて忘れそうになったのでメモ。
c>>
int n = CGColorGetNumberOfComponents(color);
float (comps)[n] = (float()[n])CGColorGetComponents(color);
<<--
C99は良いなあ。