]> diplodocus.org Git - nmh/commit
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)
commitc2306df99ac5f27147cf1fdba2935700fb008d72
tree25d7d0270cdf569f023c709384e57c6a6b960660
parent5624ffa652f99d97bfc3c2fe148b569171403427
m_getfld: Replace matchc() with memmem(3).

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.
sbr/m_getfld.c