🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6683

Re: A small programming challenge.

#6683
From: Blair P. Houghton
Date: Wed, 15 May 1991 23:43
22 lines
1391 bytes
In article <1499@loki.une.oz.au> kevin@loki.une.oz.au (Kevin Pollard) writes:
>The task is:
>   allow up to 4 parameters to be entered on the command line
>   (that is, progname [ p1 [ p2 [ p3 [ p4 ] ] ] ] if you know what I mean) 

See if you can find the getopt() or parseargs() packages.
getopt has a dozen or so versions from various people and
places, and I forget who wrote parseargs...

In short, it's a very simple, well-researched, and elegantly
solved problem to allow simple specification of the probable
calling arguments to a C program.

>This is really an algorithm problem, but since there is no algorithm
>newsgroup, and I program in C on an IBM-type machine, this would be
>a relevant newsgroup.

comp.sys.ibm.pc.programmer I'd believe.  comp.lang.c, even.
However, comp.std.c was absolutely not the correct place to put it.

				--Blair
				  "Yuck!  There's gum on the floor."
Technical Details
Message-ID: <4254@inews.intel.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!zephyr.ens.tek.com!tektronix!reed!intelhf!ichips!inews!pima!bhoughto
References: <1499@loki.une.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!zephyr.ens.tek.com!tektronix!reed!intelhf!ichips!inews!pima!bhoughto
From: bhoughto@pima.intel.com (Blair P. Houghton)
Newsgroups: comp.os.msdos.programmer
Subject: Re: A small programming challenge.
Keywords: Algorithm
Message-ID: <4254@inews.intel.com>
Date: 15 May 91 23:43:49 GMT
References: <1499@loki.une.oz.au>
Sender: news@inews.intel.com
Organization: Intel Corp, Chandler, AZ
Lines: 22