I'm using Watcom C32 Optimizing Compiler Version 11.0.
I developed a sample program test.exe. This will create a file with long file name (ex: "sample file for testing.txt") and write some dummy content in it.
#include <stdio.h>
int main(void)
{
FILE *fptr = fopen("e:\\sample file for testing.txt", "w");
fprintf(fptr,"test");
fclose(fptr);
return 0;
}
When I compile and execute the program on a FreeDOS environment with DOSLFN loaded, I see that the sample program test.exe is creating a file with short file name ("sample f.txt") instead of long file name ("sample file for testing.txt") .
So that makes me to think that Watcom is not supporting the Long file name(LFN).
Any suggestion to make the LFN to work in Watcom? I looked at the compiler option and didn't see any. Is there any special macro needs to be enabled to make it work?