]> diplodocus.org Git - nmh/commitdiff
m_getfld: Replace matchc() with memmem(3).
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 12 Nov 2016 00:39:23 +0000 (00:39 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 12 Nov 2016 00:39:23 +0000 (00:39 +0000)
libc is more likely to find one lump of memory inside another quicker
than a home-grown quadratic emulation of the VAX's MATCHC instruction.
memmem() isn't POSIX, but exists on Linux and FreeBSD.  This will see if
the buildbot is happy.


No differences found