www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/21/20:38:17

Date: Sat, 21 Mar 1998 17:35:44 -0800 (PST)
Message-Id: <199803220135.RAA16691@adit.ap.net>
Mime-Version: 1.0
To: DarkSoft AT GMX DOT Net (^Hawk^ (Thorsten Kaben)), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Debug and "/" with RHIDE / WIN95 / DJGPP

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019