This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/b_disk.c

15 lines
296 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <bios.h>
void main()
{
struct diskinfo_t di;
unsigned short status;
di.drive = di.head = di.track = di.sector = 0;
di.nsectors = 1;
di.buffer = NULL;
status = _bios_disk( _DISK_VERIFY, &di );
printf( "Status = 0x%4.4X\n", status );
}