[Previous]
[Contents]
[Next]

segread()

get the values of the segment registers

Synopsis:

#include <i86.h>
void segread( struct SREGS *seg_regs );

Description:

The segread() function places the values of the segment registers in the structure pointed to by seg_regs.

Examples:

#include <stdio.h>
#include <i86.h>

void main()
  {
    struct SREGS sregs;

    segread( &sregs );
    printf( "Current value of CS is %04X\n", sregs.cs );
  }

Classification:

WATCOM

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

FP_OFF(), FP_SEG(), MK_FP()


[Previous]
[Contents]
[Next]