TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PETER HAYWOOD
from: BRIAN WOOD
date: 1998-02-10 11:41:00
subject: multichar constant

 BW> left-to-right.  Adding a case 'a/': fixes the problem for now.
 PH> Then try running the program like this, with these command line
 PH> args:
 PH> myprog /a aaaaa ///// /s /r /q aw ah akjhvfajhv
 PH> Now, what was the result?
E:\MISC\ARG>args.exe /a aaaaa ///// /s /r /q aw ah akjhvfajhv
command-line switch = -a, -A, /a, or /A
command-line switch = aaaaa (unknown)
command-line switch = ///// (unknown)
command-line switch = /s (unknown)
command-line switch = /r (unknown)
command-line switch = /q (unknown)
command-line switch = aw (unknown)
command-line switch = ah (unknown)
command-line switch = akjhvfajhv (unknown)
Same results with Borland or Microsoft, problem solved by adding 'a/'
along with '/a' even though...
 PH> What two char constant? That's a FUBAR constant. It has no meaning.
That is your opinion, and I appreciate the advice.  When I have time
I'll probably completely rewrite these routines.  For now a simple
solution works best.  The goal was to allow code compiled with Borland
and MS to work in the same way.
L8r,
bw
... W el l,  I  f ou n d th e s  pac  e b a   r
--- Blue Wave/DOS v2.20
---------------
* Origin: River Canyon Rd. BBS Chattanooga, Tn (1:362/627)

SOURCE: echomail via exec-pc

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™.