getverify() , setverify()
- getverify gets the verify state
- setverify sets the verify state
int getverify(void);
void setverify(int value);
Remarks:
getverify gets the current state of the verify flag.
setverify sets the current state of the verify flag to value.
The verify flag controls output to the disk.When it is off, writes are not verified.When it is on, disk writes are verified to ensure the data is written properly.
Return Value:
getverify returns 0 if the verify flag is off, 1 if the flag is on
setverify does not return
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 = getch() - 0; setverify(verify_flag); if (getverify()) printf("DOS verify flag is on\n"); else printf("DOS verify flag is off\n"); return 0; } |
0 comments:
Post a Comment