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 <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.

See Also:
    _hdopen, close, fdopen, open

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, Win, OS/2 1.x(all), OS/2 2.x, NT

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