bug-gnulib
[Top][All Lists]
Advanced

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

Re: critique of gnulib - string allocation


From: Ben Pfaff
Subject: Re: critique of gnulib - string allocation
Date: Sun, 8 Sep 2019 10:47:06 -0700

On Sun, Sep 8, 2019 at 10:08 AM Bruno Haible <address@hidden> wrote:
> So, what we would need is are functions
>
>    char * substring (const char *string, size_t length);
>    char * concatenated_string2 (const char *string1, size_t length1,
>                                 const char *string2, size_t length2);
>    char * concatenated_string3 (const char *string1, size_t length1,
>                                 const char *string2, size_t length2,
>                                 const char *string3, size_t length3);
>    ...
>
> where the length arguments are set to SIZE_MAX to designate the entire
> string.

I think that substring() is the same as xstrndup().



reply via email to

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