/* sys/chdrive.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */

#include <sys/emx.h>
#include <os2emx.h>
#include "syscalls.h"

int __chdrive (char drive)
{
  if (drive >= 'a')
    drive -= 0x20;
  DosSetDefaultDisk (drive - 'A' + 1);
  return (0);
}
