apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bp...@pacbell.net>
Subject Re: [PATCH] a faster alternative to apr_pstrndup
Date Sun, 02 Dec 2001 07:03:04 GMT
William A. Rowe, Jr. wrote:

>From: "Brian Pane" <bpane@pacbell.net>
>Sent: Sunday, December 02, 2001 12:36 AM
>>This patch adds a function apr_pstrdupn(), which works like
>>apr_pstrndup() except that it's optimized for the case where
>>the caller can guarantee that the length of the supplied string
>>is >= 'n'
>Right idea - Thanks to you and Doug!  However, can we please choose a
>less ambigious name such as apr_pstrtrunc() (Truncation?)  I'm flexible
>with any other ideas as well, as long as we aren't one char from a bug.

How about apr_pstrduptrunc()?


View raw message