Bug in DOSemu-FreeDOS-bin?
Hello.
Quoted 5 lines · kontrare
i dont know if this will help but i seem to remember doing a bit of coding a ways back and using
fopen("c:\filename","r+b")in dos it wouldn't see the file till i didfopen("c:\\filename","r+b")so it may be the doshell is eating the first backslash
This has to do nothing with dosshell neither with DOS or anything else of that kind. The special chars in C must be prepended with the backslash which discards their special meaning or adds a special meaning to a normal chars. Backslash itself is a special char also. Just run the program like that:
---
#include <stdio.h>
int main() { printf("test\test\n");
}
---
The result will be:
test est
and with "test\\test\n" it will finally be test\test