Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / msdos / dstrlwr.c
blob79c58480ba7274cb36a8b342586cb8cd739a6317
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 if (STOBOOL(DcacheRespCase))
35 return;
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);
46 return;