[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module proposal: split
From: |
Ben Pfaff |
Subject: |
Re: new module proposal: split |
Date: |
Tue, 05 Sep 2006 21:43:14 -0700 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Davide Angelocola <address@hidden> writes:
> On Tuesday 05 September 2006 22:01, Ben Pfaff wrote:
>> Davide Angelocola <address@hidden> 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().
When SEP characters are adjacent, does split output an empty
string? That is, does it follow strsep or strtok semantics for
adjacent delimiters?
--
Ben Pfaff
email: address@hidden
web: http://benpfaff.org
- new module proposal: split, Davide Angelocola, 2006/09/05
- Re: new module proposal: split, Ben Pfaff, 2006/09/05
- Re: new module proposal: split, Davide Angelocola, 2006/09/05
- Re: new module proposal: split,
Ben Pfaff <=
- Re: new module proposal: split, Ralf Wildenhues, 2006/09/06
- Re: new module proposal: split, Sergey Poznyakoff, 2006/09/06
- Re: new module proposal: split, Davide Angelocola, 2006/09/06
- Re: new module proposal: split, Simon Josefsson, 2006/09/06