/* getcwd1.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */

#include <stdlib.h>
#include <emx/syscalls.h>

int _getcwd1 (char *buffer, char drive)
{
  if (__getcwd (buffer+1, drive) < 0)
    return -1;
  _fnslashify (buffer+1);
  buffer[0] = '/';
  return 0;
}
