Hello Anand,

I wrote a small program in C to create a file with a long file name as
follows.

void main(void)
{
     FILE *fptr = fopen("e:\\aerosystems.txt", "w");

     fprintf(fptr, "Genesys\n");
     fclose(fptr);
}     // END main()

And then I compiled using the Watcom compiler:

It seems the Watcom libraries do not use long file name support by
default.  Perhaps you can try to see if LFNs work if you define a macro
__WATCOM_LFN__ before including system header files?

#define __WATCOM_LFN__
#include <stdio.h>
...

Thank you!

--
https://github.com/tkchia


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to