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)
|