VMS Help  —  CRTL  fwait
    Waits for I/O on a specific file to complete.

    Format

      #include  <stdio.h>

      int fwait  (FILE *fp);

1  –  Argument

 fp

    A file pointer corresponding to an open file.

2  –  Description

    The fwait function is used primarily to wait for completion of
    pending asynchronous I/O.

3  –  Return Values

    0                  Indicates successful completion.
    -1                 Indicates an error.
Close Help