_ISNEW - did open create this file.

Usage:

.
B:
   stat = _isnew( unit );
C:
   #include <host_io.h>
   int _isnew(FILE *unit);

Where:

unit
is the number of a disk file I/O unit.
stat
is non-zero if this file was created by during open processing.

Description:

_ISNEW is used to query whether a disk file was created during open processing. A B program could have done this by checking the FILDES word, but using _ISNEW allows you to perform the test without knowing the structure of the of this word. For C programs it allows the user to use the same code in SS and NS mode.

See Also:

expl b lib fildes
For an older method of doing this test.

Copyright © 2000, Thinkage Ltd.