Mail Archives: djgpp/1997/02/10/19:23:31
On 10 Feb 1997 13:34:38 +0100, Andy Eskilsson <x-aes AT telelogic DOT se>
wrote:
>Is it possible, during runtime, to detect if long filenames is
>supported (the LFN=y is set in the djgpp.env file)
>
>And how :-)
Compile and run this:
#include <stlib.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
- Raw text -