[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of memcmp in font.c
From: |
Miles Bader |
Subject: |
Re: Use of memcmp in font.c |
Date: |
Wed, 11 Jun 2008 10:12:52 +0900 |
Kenichi Handa <address@hidden> writes:
> I've thought that memcmp doesn't check bytes after the first
> non-matching byte and thus the above are safe because p0 is
> null-terminated.
Probably many implementations don't, but I'm not sure that's
guaranteed... [e.g., they may do comparisons more than one byte at a
time.]
-Miles
--
Fast, small, soon; pick any 2.