Re: stpecpy(): A better string copy function (was: memccpy(3) and stpcpy(3) status in C2x)

2022-02-14 Thread Alejandro Colomar (man-pages)
On 2/14/22 21:34, Steffen Nurpmeso wrote: > I personally like my > > /*! Copy \a{src} to \a{dst}, return pointer to NUL in \a{dst}. >* Returns \NIL if \a{dst} is not large enough; \a{dst} will always be >* terminated unless \a{n} was 0 on entry. */ > EXPORT char *su_cs_pcopy_n(char

Re: memccpy(3) and stpcpy(3) status in C2x (was: stpecpy(): A better string copy function)

2022-02-14 Thread Steffen Nurpmeso
Martin Sebor wrote in : |On 2/13/22 13:32, Alejandro Colomar (man-pages) wrote: |> On 2/13/22 19:29, Alejandro Colomar (man-pages) wrote: .. |>>> I expect/hope stpcpy to become the new norm for string copying, though |>>> it will require overcoming much inertia and many dusty old books. |>>>

Re: memccpy(3) and stpcpy(3) status in C2x (was: stpecpy(): A better string copy function)

2022-02-14 Thread Martin Sebor
On 2/13/22 13:32, Alejandro Colomar (man-pages) wrote: Hi Branden, On 2/13/22 19:29, Alejandro Colomar (man-pages) wrote: Oh, I was going to ask if you were aware of stpcpy(), but if I click the link to codidact I see that you are. I expect/hope stpcpy to become the new norm for string copying