home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / dos / lfn / fncase.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-31  |  353 b   |  16 lines

  1. /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
  2. #include <libc/stubs.h>
  3. #include <stdlib.h>
  4. #include <ctype.h>
  5. #include <fcntl.h>
  6. #include <crt0.h>
  7.  
  8. char
  9. _preserve_fncase (void)
  10. {
  11.   char *ep;
  12.  
  13.   return ((_crt0_startup_flags & _CRT0_FLAG_PRESERVE_FILENAME_CASE)
  14.       || ((ep = getenv ("FNCASE")) && tolower (*ep) == 'y'));
  15. }
  16.