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 <io.h>
    int _os_handle( int handle );

Description:
    The _os_handle function takes a POSIX-style file handle specified by
    handle.  It returns the corresponding operating system level handle.

Returns:
    The _os_handle function returns the operating system handle that
    corresponds to the specified POSIX-style file handle.

Example:
    #include <stdio.h>
    #include <io.h>

    void main()
      {
        int handle;
        FILE *fp;

        fp = fopen( "file", "r" );
        if( fp != NULL ) {
          handle = _os_handle( fileno( fp ) );
          fclose( fp );
        }
      }

Classification:
    WATCOM

Systems:
    DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32, Netware

See Also:
    close, fdopen, _get_osfhandle, _hdopen, open, _open_osfhandle

See Also: _get_osfhandle _hdopen

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