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

  1.  
  2. #include "jlib.h"
  3.  
  4. /* Create a file to read/write */
  5. Jfile dos_create(title)
  6. char *title;
  7. {
  8. union i86_regs reg;
  9.  
  10. reg.b.ah = 0x3c;
  11. reg.w.cx = 0;
  12. reg.w.dx = i86_ptr_offset(title);
  13. reg.w.ds = i86_ptr_seg(title);
  14. if (i86_sysint(0x21,®,®)&1)    /* check carry */
  15.     return(0);
  16. else
  17.     return(reg.w.ax);
  18. }
  19.  
  20.