delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/11/06:32:59

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Detecting longfilename support..
Date: Mon, 10 Feb 1997 19:44:03 GMT
Organization: Oxford University
Lines: 34
Message-ID: <32ff79f3.19453209@news.ox.ac.uk>
References: <ksk9ogc00x DOT fsf AT telelogic DOT se> <32ff64ab DOT 14004877 AT news DOT ox DOT ac DOT uk>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Mon, 10 Feb 1997 18:16:04 GMT, mert0407 AT sable DOT ox DOT ac DOT uk (George
Foot) wrote:

Argh, mistakes mistakes mistakes... I wasn't going to post the whole
program, then filled in the rest by hand. Corrections follow...

>Compile and run this:
>
>#include <stlib.h>

Above line should read: #include <stdlib.h>

also: #include <stdio.h>

>int main(void)
>{
> int lfn=(toupper(getenv("LFN")[0])=='Y');
>
> if (lfn)
>  printf("Long filenames available.\n");
> else
>  printf("Long filenames not available.\n");
>
> return(lfn);
>}
>
>Hope this helps,
>
>George Foot

Sorry about that... and please don't ask me why I read my own
postings! <g>

George

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019