[Asterisk-Dev] [RFC] strncpy -> ast_copy_string
Russell Bryant
russelb at CLEMSON.EDU
Tue May 3 13:10:45 MST 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?
In the case of ast_strlen_zero, it obviously provides different
functionality.
For ast_copy_string, it doesn't actually do the same thing at strncpy.
One of these days, someone may expect the buffer to be padded with '\0'.
Russell
More information about the asterisk-dev
mailing list