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
| DOS | UNIX | Windows | ANSI C | C++ 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.
Stable link: /3.1/dos.h/setverify/
· short form /3.1/setverify/