_BITPTR - perform bit pointer arithmetic.

(GCOS-8 Only)

Usage:

newptr = _bitptr(oldptr,offset);

Where:

void *oldptr;
points to any location in the program.
int offset;
is a positive or negative integer. This represents a bit offset from the location indicated by "oldptr".
void *newptr;
points to the location that is the given bit offset from "*oldptr".

Description:

"_bitptr" returns a hardware pointer to the bit that is the given offset from "oldptr". The alignment of "*newptr" may not be appropriate for ANY valid C data object (except for a bit field). Bit pointers created by "_bitptr" may be compared for equality/inequality with other "(void *)" pointers and may be assigned to "(void *)" data objects. Any other operations, however, may result in error.

Copyright © 1996, Thinkage Ltd.