strncpy()

John Mashey mash at whuxlb.UUCP
Sat Aug 20 22:05:17 AEST 1983


strcpyn() (before it was renamed strncpy(), was originally
written specifically t odeal with directories, accouting records,
and various other places in UNIX that expect fixed-length fields
containing varaible length strings padded with nulls.
There used to be numerous instances of slightly different code to
do the strncpy/strncmp functions in-line.
-mashey



More information about the Comp.lang.c mailing list