modifying an array argument in C modules