home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / SYS / CHDIR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  326 b   |  20 lines

  1. /* sys/chdir.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/emx.h>
  4. #include <os2emx.h>
  5. #include "syscalls.h"
  6.  
  7.  
  8. int __chdir (const char *name)
  9. {
  10.   ULONG rc;
  11.  
  12.   rc = DosSetCurrentDir (name);
  13.   if (rc != 0)
  14.     {
  15.       _sys_set_errno (rc);
  16.       return (-1);
  17.     }
  18.   return (0);
  19. }
  20.