Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druxu.UUCP Path: utzoo!linus!decvax!harpo!floyd!whuxlb!pyuxll!eisx!npoiv!npois!hogpc!houxm!ihnp4!drux3!druxu!tll From: tll@druxu.UUCP Newsgroups: net.lang.c Subject: Re: strncpy() Message-ID: <677@druxu.UUCP> Date: Fri, 19-Aug-83 17:56:54 EDT Article-I.D.: druxu.677 Posted: Fri Aug 19 17:56:54 1983 Date-Received: Sat, 20-Aug-83 01:42:38 EDT References: <1020@rlgvax.UUCP> Organization: AT&T Information Systems, Denver Lines: 9 One place where strncpy's behavior is desirable is in dealing with UNIX* directory entries. A directory entry contains a 14-character array for the filename, which is padded with nulls. It is only null-terminated if the filename is less than 14 characters long. Tom Laidig * UNIX is a trademark of some subsidiary of AT&T, which may have almost any name or logo, depending on the date nad Judge Greene's mood.