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: <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 Above line should read: #include also: #include >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! George