Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / dmake / msdos / dstrlwr.c
blob64027eb364818af6faeb0ca27d13695458029f9d
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.
11 -- AUTHOR
12 -- Dennis Vadura, dvadura@dmake.wticorp.com
14 -- WWW
15 -- http://dmake.wticorp.com/
17 -- COPYRIGHT
18 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
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>/readme/license.txt.
24 -- LOG
25 -- Use cvs log to obtain detailed change logs.
27 #include "extern.h"
29 PUBLIC void
30 dstrlwr(entry, target)
31 char *entry;
32 char *target;
34 char *p;
36 if (STOBOOL(DcacheRespCase))
37 return;
39 /* Look for the target being lower case, if so then lower the case
40 * of the directory entry. Note that we only check the first
41 * character of the target. This is a bit of a kludge but there is
42 * really no other way to know, particularly since this test will be
43 * performed for each member of the directory but against the same
44 * target. */
45 if (islower(*target))
46 strlwr(entry);
48 return;