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/C++ v10.0 : C library - <b>synopsis:</b> 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.

See Also:
    FP_OFF, FP_SEG, MK_FP

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

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