On Thu, 7 Aug 2003 14:01:02 +0200 (CEST)
Henrik Nordstrom <hno@squid-cache.org> wrote:
>On Thu, 7 Aug 2003, Evgeny Kotsuba wrote:
>
>> What is the reason that tools.c -> strwordtok() eats all '\'
>> characters ?
>
>Because strwordtok splits strings into words according to UNIX
>"shell"
>syntax. The \ is a special escape character in such context.
From formal point of view strwordtok has nothing conmmon with shell
syntax.
/*
* Similar to strtok, but has some rudimentary knowledge
* of quoting
*/
If you still can't understand - give something like "\n\t\r\f\b\a" to
strwordtok
SY,
Evgeny Kotsuba
Received on Thu Aug 07 2003 - 15:12:21 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:27 MST