abswrite()               Write Disk Sectors
 
 #include   <dos.h>
 
 int        abswrite(drive,nsects,sectno,buffer);
 int        drive;                       Drive number to read
 int        nsects;                      Number of sectors to read
 int        sectno;                      Beginning logical sector number
 void       *buffer;                     Memory address
 
    abswrite() writes specific disk sectors.  The logical structure of
    the disk is ignored, along with all specifics about files, FATs and
    directories.  The disk sectors are written via DOS interrupt 0x26.
    'drive' is the drive number to read (0 = A, 1 = B, etc), 'nsects' is
    the number of sectors to read, 'sectno' is the beginning logical
    sector number, and 'buffer' refers to the memory address where the
    data is to be written.
 
    Returns:    If successful, 0 is returned.  -1 is returned on error,
                and 'errno' is set to the value of the AX register
                returned by the system call.
 
      Notes:    64K is the largest amount of memory that can be written
                in a single call.

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster