Checking that a memory area is empty

Mike Frysinger vapier@gentoo.org
Wed Feb 20 21:33:00 GMT 2013


On Wednesday 20 February 2013 15:58:00 Shérab wrote:
> Mike Frysinger (2013/02/18 15:06 -0500):
> > that might be a bit faster, but it sounds like memspn()/memcspn() funcs
> > would work too.  googling for those func names turns up quite a number
> > of existing implementations.
> 
> I do not understand what these functions do and also where they come
> from.It seems they are not implemented in glibc? ARe theyparto any
> standad, though ?

they aren't part of an official standard, but they're the logical extension of 
the existing strspn() and strcspn() funcs.  for you SAT lovers:
	memchr is to strchr as memspn is to strspn as memcspn is to strcspn
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20130220/30f9de60/attachment.sig>


More information about the Libc-alpha mailing list