Borland C++ reference

setverify

raw OCR

Sets the state of the verify flag in DOS.

Defined in header <dos.h>

Syntax

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

Portability

DOSUNIXWindowsANSI CC++ only
■■

Remarks

setverify sets the current state of the verify flag to value.

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

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

None.

See also

Example

#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main (void)

   int verify_flag;
   printf("Enter 0 to  set verify flag off\n"
   printf("Enter 1 to  set verify flag on\n")
   verify_flag = getchO   - 0;
   setverify (verify_flag);
   if (getverifyO  )
      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.