home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / zc.lzh / ZC / ZCSRC.LZH / IOLib / stdio / rmdir.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-15  |  179 b   |  14 lines

  1. #include <errno.h>
  2.  
  3. extern long DeleteFile(), IoErr();
  4.  
  5. int rmdir(pathname)
  6. char *pathname;
  7. {
  8.     if ( DeleteFile(pathname) != -1L ){
  9.         errno = IoErr();
  10.         return -1;
  11.     }
  12.     return 0;
  13. }
  14.