FP_OFF(DOS) XENIX System V FP_OFF(DOS)
Name
fp_off, fp_seg - Return offset and segment.
Syntax
#include <dos.h>
unsigned FP_OFF(longptr);
unsigned FP_SEG(longptr);
char far *longptr;
Description
The FP_OFF and FP_SEG macros return the offset and segment,
respectively, of the long pointer longptr.
Return Value
FP_OFF returns an unsigned integer value representing an
offset. FP_SEG returns an unsigned integer value
representing a segment address.
See Also
segread(DOS)
Example
#include <dos.h>
char far *p; unsigned int sp; unsigned int op;
.
.
. sp = FP_SEG(p); op = FP_OFF(p);
Notes
These calls must be compiled with the -dos flag.
Page 1 (printed 8/7/87)