Off by one?
Posted May 30, 2003 16:28 UTC (Fri) by
tjc (guest, #137)
In reply to:
Off by one? by ncm
Parent article:
strlcpy()
Getting within 15% of memcpy is pretty damn good, in my estimation. Of course I didn't read Linus's version, or OpenBSD's; that would be cheating, and I would be tainted besides. Of course now that I have been told, via cleanroom methods, I can adjust mine to be equally fast, and maybe (one can hope) actually identical to both Linus's and OpenBSD's.
You're probably going to have to copy more than one char at a time to match memcpy() for speed.
(
Log in to post comments)