sync master with lastest vba changes
[ooovba.git] / dmake / win95 / switchar.c
blob6daae2646f0aec0eed69dd320e1177d0ea6936b9
1 /* RCS $Id: switchar.c,v 1.1.1.1 2000-09-22 15:33:36 hr Exp $
2 --
3 -- SYNOPSIS
4 -- switchar settings
5 --
6 -- DESCRIPTION
7 -- Figure out the value of switchar.
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.
17 --
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 <stdlib.h>
27 #include <stdio.h>
28 #include "stdmacs.h"
30 getswitchar()/*
31 ===============
32 Try the environment first. If you don't find SWITCHAR there, then use
33 the DOS call. The call is undocumented, and doesn't work for DOS versions
34 4.0 and up, so the check of the environment will fix that. */
36 static char *_env_switchar = NIL(char);
38 if( _env_switchar != NIL(char) ||
39 (_env_switchar = (char *)getenv("SWITCHAR")) != NIL(char) )
40 return(*_env_switchar);
42 return ('/');