. B: stat = _isnew( unit ); C: #include <host_io.h> int _isnew(FILE *unit);
_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.
Copyright © 2000, Thinkage Ltd.