Thread (16 messages) 16 messages, 6 authors, 2016-06-15

Re: [PATCH] compat: add memrchr()

flat view

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:49:47

On Fri, Oct 15, 2010 at 7:17 AM, Jonathan Nieder [off-list ref] wrote:
Reimplement another handy convenience function from glibc.  memrchr()
searches from the end of a memory area for a particular character.  It
is similar to strrchr() but takes a length argument and is
binary-safe.

The whole-directory rename detection patch could use this to find the
last directory separator in a (possibly truncated) pathname.
Are you sure this would work on Windows where both '/' and '\' are
valid directory separators?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help