[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module proposal: split

From: Davide Angelocola
Subject: Re: new module proposal: split
Date: Wed, 6 Sep 2006 09:15:36 +0200
User-agent: KMail/1.9.4

On Wednesday 06 September 2006 08:20, Sergey Poznyakoff wrote:
> In mailutils, we use the function argcv_get:
> int argcv_get (const char *string, const char *delim, const char *cmnt,
>                int *argc, char ***argv);
> which breaks the `string' according to the delimiters in `delim',
> eventually ignoring anything after the comment starter `cmnt'.  It fills
> in the array `argv' with the collected tokens and stores the number of
> them in the memory location pointed to by `argc'.  The array `argv' is
> NULL terminated.  Quotes and backslashes within `string' are handled in
> shell-like fashion, i.e. "the \"new string\"" will produce two tokens
> "the" and "new string".
> The function returns 0 on success.  Both `delim' and `cmnt' can be NULL.
> It seems to do just what the proposed split module should be doing,
> doesn't it?
argcv_get has more features than split(). It's ok for me to use this in 
place of split().

-- Davide Angelocola

reply via email to

[Prev in Thread] Current Thread [Next in Thread]