Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / os2 / dchdir.c
blob6244c630d2a68fccc293d1d33f48ac63ddc07c8e
1 /* RCS $Id: dchdir.c,v 1.1.1.1 2000-09-22 15:33:30 hr Exp $
2 --
3 -- SYNOPSIS
4 -- Change directory.
5 --
6 -- DESCRIPTION
7 -- Under DOS change the current drive as well as the current directory.
8 --
9 -- AUTHOR
10 -- Dennis Vadura, dvadura@dmake.wticorp.com
12 -- WWW
13 -- http://dmake.wticorp.com/
15 -- COPYRIGHT
16 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
18 -- This program is NOT free software; you can redistribute it and/or
19 -- modify it under the terms of the Software License Agreement Provided
20 -- in the file <distribution-root>/readme/license.txt.
22 -- LOG
23 -- Use cvs log to obtain detailed change logs.
26 #include <os2.h>
27 #include "extern.h"
29 PUBLIC int
30 _dchdir(path)
31 char *path;
33 int res;
35 res = _chdir(path);
37 if (res == 0 && path[1] == ':')
38 DosSelectDisk((*path & ~0x20) - '@');
40 return (res);