home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / source / sh / std / stdc / stdio.c < prev    next >
C/C++ Source or Header  |  1995-05-18  |  301b  |  27 lines

  1. /*
  2.  * Emulation of misc. ANSI C stdio functions
  3.  */
  4.  
  5. /* $Header */
  6.  
  7. #include <stdio.h>
  8.  
  9. #if 1
  10. int
  11. remove(name)
  12.     Const char *name;
  13. {
  14.     return unlink(name);
  15. }
  16. #endif
  17.  
  18. #if _V7
  19. int
  20. rename(oname, nname)
  21.     Const char *oname, *nname;
  22. {
  23.     return link(oname, nname) == 0 && unlink(oname) == 0 ? 0 : -1;
  24. }
  25. #endif
  26.  
  27.