Re: [AD] 3.9.34 release date? (args)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



On Wed, 10 Jan 2001 stephen.kittelson@xxxxxxxxxx wrote:

> On Wed, 10 Jan 2001 13:56:07 +0000 Olly Betts <olly@xxxxxxxxxx> writes:
> > Here's a patch for a minor bug.  The code which parses the
> > command-line into
> > argv and argc for MS Windows doesn't add a terminating NULL value to
> > argv.
> > You won't notice if you use argc to stop reading, but will if you
> > iterate
> > through argv until you hit a NULL entry.
>
> So why not just use `argc'?

argv ending with NULL is in POSIX standard (derived from Unix and
implemented by its clones and also Windows NT claims to follow it) and
this convention is widely used.

Have a nice day.

Stepan Roh



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/