[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().
Re: critique of gnulib - stdioext, Bruno Haible, 2019/09/08
Re: critique of gnulib - malloc wrapper, Bruno Haible, 2019/09/08
Re: critique of gnulib - disabling workarounds, Bruno Haible, 2019/09/08