This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Checking that a memory area is empty
- From: Shérab <Sebastien dot Hinderer at ens-lyon dot org>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: libc-alpha at sourceware dot org,Samuel Thibault <Samuel dot Thibault at ens-lyon dot org>
- Date: Thu, 7 Feb 2013 22:07:02 +0100
- Subject: Re: Checking that a memory area is empty
- References: <20130206081119.GA6650@pema><20130206145409.GF20323@brightrain.aerifal.cx>
Dear Richard,
Many thanks for your response!
> Slightly off-topic, but if your program needs such a function, it
> could easily be implemented in terms of a loop performing memcmp on a
> fixed-max-size subrange against a static const zero buffer of the
> particular size.
Actually the areas of interest are small but in the general case your
idea is great!
Thanks again!
Sherab.