[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expr: Improvement of substr
From: |
Bob Proulx |
Subject: |
Re: Expr: Improvement of substr |
Date: |
Tue, 12 Sep 2006 00:17:57 -0600 |
User-agent: |
Mutt/1.5.9i |
Paul Eggert wrote:
> Sebastian Kreft writes:
> > And finally, why do you use mempcpy instead of strncpy?
>
> A minor speed increase. mempcpy need not check for '\0'.
In general I am always happy to see strncpy() removed from code. It
is a terrible library routine, named inconsistently with other strn*()
routines, and just generally misunderstood.
Bob