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 do?
split() splits the string "str" into an array of strings accordingly "sep" 
and returns that array and it's size in *argc. The array is allocated via 
malloc().

> The function signature is:
>   char *split(const char *str, char sep, int *argc);
this signature is wrong:
char **split(const char *str, char sep, int *argc);

Best Regards,
-- Davide Angelocola


Reply via email to