Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <i86.h>
    void segread( struct SREGS *seg_regs );

Description:
    The segread function places the values of the segment registers into the
    structure located by seg_regs.

Returns:
    No value is returned.

Example:
    #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

Systems:
    All, Netware

See Also:
    FP_OFF, FP_SEG, MK_FP

See Also: FP_OFF FP_SEG

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson