[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why do you want to increment *argc in argcv.c?
From: |
Sergey Poznyakoff |
Subject: |
Re: Why do you want to increment *argc in argcv.c? |
Date: |
Sat, 23 Feb 2002 12:23:23 +0200 |
The reason for this was that given input "set nocrt",
argcv_get returned: { "set", NULL }, i.e. _one_ argument,
instead of two. To force it interpret the above line
correctly, one had to enter an extra whitespace:
"set nocrt ". But you are right, I have overlooked that after my
modification the trailing whitespace got appended to the
argv array. To fix it, I've changed argcv_scan so, that
it indicates end of the parsing by returning a number greater
than the length of the input string.
Thank you.
Sergey