On Sun, 28 Nov 2010 20:32:24 -0500, Stewart Gordon <smjg_1...@yahoo.com> wrote:

On 27/11/2010 23:04, Kagamin wrote:
bearophile Wrote:

Also, is there a way to bit-compare given memory areas at much
higher speed than element per element (I mean for arrays in
general)?

I don't know. I think you can't.

You can use memcmp, though only for utf-8 strings.

Only for utf-8 strings? Why's that? I would've thought memcmp to be type agnostic.

Stewart.

memcmp is type agnostic if all you want to compare is equality. The other use of memcmp is essentially as an opCmp, in which case it would be type sensitive.

Reply via email to