home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / animutil / flilib / flisrc / jdelete.c < prev    next >
C/C++ Source or Header  |  1989-11-16  |  310b  |  18 lines

  1.  
  2. #include "jlib.h"
  3.  
  4. /* Delete a file if possible.  Don't complain if it's not there. */
  5. Boolean dos_delete (title)
  6. char *title;
  7. {
  8. union i86_regs reg;
  9.  
  10. reg.b.ah = 0x41;
  11. reg.w.dx = i86_ptr_offset(title);
  12. reg.w.ds = i86_ptr_seg(title);
  13. if (i86_sysint(0x21,®,®)&1)
  14.     return(0);
  15. return(1);
  16. }
  17.  
  18.