Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Strange argv[]

Author: Colin Frayn

Date: 09:36:27 02/13/02

Go up one level in this thread


On February 13, 2002 at 05:23:50, Odd Gunnar Malin wrote:

>When I try to start a consoleprogram from CA as Winboard Engine or UCI engine
>the programpath is split in the argv[] (int main(int argc, char* argv[])).

Ouch.  Just as a matter of style and neatness I strongly suggest that people
NEVER use spaces in filenames - it's just hideous and causes all manner of nasty
bugs, especially in older applications.  I'm amazed that Microsoft ever tried to
implement such a ridiculous idea, but wherever possible avoid it.

Spaces in filenames break numerous programs that I know of, and probably
countless more besides.  After all, they're going to cause havoc in any
tokenised string parser, even if surrounded by quote marks (in many cases).

Cheers,
Col



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.