R
Richard Bos
Tom St Denis said:strncpy and/or write your own that checks bounds.
Anyone who suggests using strncpy() as a replacement for strcpy() is a
loony.
If you want to copy a string with a maximum length, use strncat(),
_never_ strncpy(), which has undesirable side effects. If you want to
copy a string of which you _already_ know its maximum length, and you
know that it fits, using anything but strcpy() is daft.
Richard