apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bp...@pacbell.net>
Subject [PATCH] a faster alternative to apr_pstrndup
Date Sun, 02 Dec 2001 06:36:54 GMT
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'

I've included diffs to apply this optimization to apr_uri.c,
where apr_strndup() is used a lot.

--Brian



Mime
View raw message