This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Checking that a memory area is empty


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]