L.
>
> 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
ou considered the desirability of multiple break characters?
> Possibly something like strtok_r semantics to
> break a string into a number of argv tokens based
> on a string of possible break characters
> (e.g., " \t\n\r")
no, but this a very nice idea
Best Regards,
-- 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);
> >
&
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?
-- Davide Angelocola
[] = "a string ";
printf("strip '%s'\n", strip(strdup(buf)));
printf("chug '%s'\n", chug(strdup(buf)));
printf("strip '%s'\n", chomp(strdup(buf)));
return 0;
}
Best regards,
-- Davide Angelocola (dfa)
Done. Thanks for the suggestions.
Best regards,
-- Davide Angelocola
Description:
trim() removes leading and/or trailing whitespaces
Files:
lib/trim.c
lib/trim.h
Depends-on:
xalloc
mbiter
configure.ac:
Makefile.am:
EXTRA_DIST += trim.h
Include:
#include "trim.h"
License:
GPL
Maintai
[] = "a string ";
printf("strip '%s'\n", strip(strdup(buf)));
printf("chug '%s'\n", chug(strdup(buf)));
printf("strip '%s'\n", chomp(strdup(buf)));
return 0;
}
Best regards,
-- Davide Angelocola (dfa)
--
-- Davide Angelocola
:895:16: #if with no expression
without defining USE_OBSTACK it compiles.
Best Regards,
-- Davide Angelocola
___
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib
om...
> configure.ac:84: gl_AC_TYPE_UINTMAX_T is required by...
> m4/obstack.m4:23: gl_PREREQ_OBSTACK is expanded from...
> m4/obstack.m4:14: gl_OBSTACK is expanded from...
> m4/gnulib-comp.m4:44: gl_INIT is expanded from...
> configure.ac:84: the top level
>
> I'm using autoco
m4:23: gl_PREREQ_OBSTACK is expanded from...
m4/obstack.m4:14: gl_OBSTACK is expanded from...
m4/gnulib-comp.m4:44: gl_INIT is expanded from...
configure.ac:84: the top level
I'm using autoconf 2.59 and 1.4.3.
-- Davide Angelocola
___
bug-gnulib mailin
10 matches
Mail list logo