Go to the first, previous, next, last section, table of contents.


_open

Syntax

#include <io.h>

int _open(const char *path, int attrib);

Description

This is a direct connection to the MS-DOS open function call, int 0x21, %ah = 0x3d. (When long file names are supported, _open calls function 0x716c of Int 0x21.) The file is set to binary mode.

This function can be hooked by the See section File System Extensions. If you don't want this you should use See section _dos_open (but note that the latter doesn't support long file names).

Return Value

The new file descriptor, else -1 on error.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.