TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Charles Angelich
from: Jasen Betts
date: 2003-08-07 18:28:42
subject: getopt()

Hi Charles.

05-Aug-03 15:27:04, Charles Angelich wrote to Andrew Clarke

 CA> Whitespace works too.

I meant by separate i meant to provide a way to diferentiate between them

 CA>>> With argc available I don't see the need for the switch chars.
 CA>>> Order of entry should be sufficient.

 ac>> touch t 030806 myfile

 ac>> then you would need to always three arguments. Plus it's not so
 ac>> obvious that argv[1] is a switch and that argv[2] is the
 ac>> parameter to argv[2]. Someone unfamilar with the touch utility
 ac>> may think that 030806 is a filename.

 CA> I used "touch t030806 myfile" (no whitespace) and parsed from
 CA> whitespace to whitespace.

what happens if you've got a file called d030707 etc...

if you use swiutches it lets you reliably tackle more than one file at a
time in this scenario.

 -=> Bye <=-

---
* Origin: How to make Kleenex dance? Blow a little boogie in it. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.