Re: new module proposal: split

2006-09-06 Thread Simon Josefsson
Davide Angelocola <[EMAIL PROTECTED]> writes: > 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 break

Re: new module proposal: split

2006-09-06 Thread Davide Angelocola
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',

Re: new module proposal: split

2006-09-06 Thread Davide Angelocola
On Wednesday 06 September 2006 06:24, you wrote: > It is not clear, will this split do something like > like creating an *argv[] list which has a NULL > pointer as the last element in the array? exactly > Hmmm... is argc guarenteed to be positive? If not, > what does a negative argc mean? If so, w

Re: new module proposal: split

2006-09-05 Thread Sergey Poznyakoff
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

Re: new module proposal: split

2006-09-05 Thread Ralf Wildenhues
Hello Davide, * Davide Angelocola wrote on Tue, Sep 05, 2006 at 10:51:37PM CEST: > On Tuesday 05 September 2006 22:01, Ben Pfaff wrote: > > Davide Angelocola <[EMAIL PROTECTED]> writes: > > > char *split(const char *str, char sep, int *argc); > > > > What does it do? > split() splits the string

Re: new module proposal: split

2006-09-05 Thread Ben Pfaff
Davide Angelocola <[EMAIL PROTECTED]> writes: > On Tuesday 05 September 2006 22:01, Ben Pfaff wrote: >> Davide Angelocola <[EMAIL PROTECTED]> writes: >> > I'm proposing another new module for gnulib: split. >> > >> > The function signature is: >> > char *split(const char *str, char sep, int *arg

Re: new module proposal: split

2006-09-05 Thread Mark D. Baushke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Davide Angelocola <[EMAIL PROTECTED]> writes: > On Tuesday 05 September 2006 22:01, Ben Pfaff wrote: > > Davide Angelocola <[EMAIL PROTECTED]> writes: > > > I'm proposing another new module for gnulib: split. > > > > > > The function signature is: > >

Re: new module proposal: split

2006-09-05 Thread Davide Angelocola
On Tuesday 05 September 2006 22:01, Ben Pfaff wrote: > Davide Angelocola <[EMAIL PROTECTED]> writes: > > I'm proposing another new module for gnulib: split. > > > > The function signature is: > > char *split(const char *str, char sep, int *argc); > > > > what do you think about? > > What does it

Re: new module proposal: split

2006-09-05 Thread Ben Pfaff
Davide Angelocola <[EMAIL PROTECTED]> writes: > I'm proposing another new module for gnulib: split. > > The function signature is: > char *split(const char *str, char sep, int *argc); > > what do you think about? What does it do? -- "Sanity is not statistical." --George Orwell