strncpy
Peter da Silva
peter at ficc.uu.net
Wed Jan 24 00:55:56 AEST 1990
> That's why it is a bastard function - it is designed to work with
> the null-termination convention but does not guarantee closure.
What it does is provide the most generally useful facility. If it always
null-terminated, it couldn't be used for copies into a known fix-sized
buffer. And since you know the length, you can always null-terminate
the string yourself.
--
_--_|\ Peter da Silva. +1 713 274 5180. <peter at ficc.uu.net>.
/ \
\_.--._/ Xenix Support -- it's not just a job, it's an adventure!
v "Have you hugged your wolf today?" `-_-'
More information about the Comp.lang.c
mailing list