[Asterisk-Dev] [RFC] strncpy -> ast_copy_string
alex at pilosoft.com
alex at pilosoft.com
Tue May 3 11:11:06 MST 2005
On Tue, 3 May 2005, Brian West wrote:
> I also have another question.. why didn't we just override strncpy and
> strlen with our own functions to call them how we want.. instead of
> comign up with ast_strlen_zero and ast_string_copy?
Principle of least astonishment. I'd be pretty damn surprised when strncpy
in asterisk has very different semantics from the strncpy everywhere else
on the system.
-alex
More information about the asterisk-dev
mailing list