Why should strncpy() generally be avoided?

There is occasionally a good reason to use strncpy(). However:


Please publish references to this page under the canonical URL http://benpfaff.org/writings/clc/strncpy.html.
Last updated 02 Jan 2004 23:40. Copyright © 2004 Ben Pfaff.
May be freely redistributed, but copyright notice must be retained.