possibly better prototyped as unsigned *, and adding a comment to indicate what it does.