delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/18/08:50:59

Date: Tue, 18 Aug 1998 14:50:06 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199808181250.OAA19141@acp3bf.physik.rwth-aachen.de>
To: spiritseeker AT geocities DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Trouble using "/?" and "argv" with c++
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B

In article <35D86C29 DOT 2164 AT geocities DOT com> you wrote:

> How can I use "/?" with "argv" in c++ mode?

You may have to enclose it in quotes. Otherwise, it will be treated as
a filename wildcard and expand to whatever one-letter file or
directory name you happen to have in the root of your hard drive...

Remember: '/' is the directory separator in Unix, and thus in DJGPP.

For checking, just write a small program that prints all its argv[]
strings. Then call it with 'prntargs /?', and see.

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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