1 /* RCS  $Id: dstrlwr.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $
2 --
3 -- SYNOPSIS
4 --      Rotines for computing case mappings in Win95/NT environments.
5 --
6 -- DESCRIPTION
7 --      This code is an attempt at providing sane case mappings to help
8 --      deal with the disparity in file name case between 8.3 and long
9 --      file names under Win95/NT.
10 --
11 -- AUTHOR
12 --      Dennis Vadura, dvadura@dmake.wticorp.com
13 --
14 -- WWW
15 --      http://dmake.wticorp.com/
16 --
17 -- COPYRIGHT
18 --      Copyright (c) 1996,1997 by WTI Corp.  All rights reserved.
19 --
20 --      This program is NOT free software; you can redistribute it and/or
21 --      modify it under the terms of the Software License Agreement Provided
22 --      in the file <distribution-root>/COPYING.
23 --
24 -- LOG
25 --      Use cvs log to obtain detailed change logs.
26 */
27 #include "extern.h"
28 
29 PUBLIC void
dstrlwr(entry,target)30 dstrlwr(entry, target)
31 char *entry;
32 char *target;
33 {
34    if (BTOBOOL(DcacheRespCase))
35       return;
36 
37    /* Look for the target being lower case, if so then lower the case
38     * of the directory entry.  Note that we only check the first
39     * character of the target.  This is a bit of a kludge but there is
40     * really no other way to know, particularly since this test will be
41     * performed for each member of the directory but against the same
42     * target. */
43    if (islower(*target))
44       strlwr(entry);
45 
46    return;
47 }
48