関数にポインタを渡したい。このポインターが配列の途中の場所を指すようにします。そのような配列があるunsigned char BufferData[5000];
とします。次のステートメントは構文的に正しいでしょうか?
writeSECTOR( destAddress, (char *)( BufferData + (int)(i * 512 )) );
// destAddress is of type unsigned long
// writeSECTOR prototype: int writeSECTOR ( unsigned long a, char * p );
// i is an int