Mail Archives: djgpp/1998/03/21/20:38:17
At 08:46 3/20/1998 +0100, ^Hawk^ (Thorsten Kaben) wrote:
>Another problem is the __crt0_argv[0] ... this tould the parameter
>like this d:/temp/... but I'm using it under WIN95 and not under Unix!
>What can I do to change this ? I must have this like this d:\test\...
First of all, why do you use `__crt0_argv'? You're supposed to use the
arguments `main' gets.
Various people have pointed out that all the library functions are perfectly
happy with `/'s. However...
>Where and how can I tell the RHIDE and the complete DJGPP that they
>must use "\" instead of "/" ?
If you really *must* have `\'s (like if your program scans filenames for
them), you can #include <crt0.h> and put this line at the top level (i.e.,
not inside any function):
_crt0_startup_flags = _CRT0_FLAG_USE_DOS_SLASHES;
See the libc documentation for "_crt0_startup_flags" for more info.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -