Borland C++ reference

getverify

raw OCR

Returns the state of the DOS verify flag.

Defined in header <dos.h>

Syntax

#include <dos.h>
int getverify(void);

Portability

DOSUNIXWindowsANSI CC++ only
■■

Remarks

getverify gets the current state of the verify flag.

The verify flag controls output to the disk. When verify is off, writes are not verified; when verify is on, all disk writes are verified to ensure proper writing of the data.

Return value

getverify returns the current state of the verify flag, either 0 or 1.

■ A return of 0 = verify flag off. ■ A return of 1 = verify flag on.

See also

Example

#include <stdio.h>
#include <dos.h>

int main(void)
{
   if (getverify0)
      printf("DOS verify flag is on\n");
   else
      printf("DOS verify flag is off\n");
   return 0;
}

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.