strncpy

Michael T. Sullivan sullivan at aqdata.uucp
Sat Dec 23 04:24:09 AEST 1989


>From article <11510 at csli.Stanford.EDU>, by poser at csli.Stanford.EDU (Bill Poser):
> 
> I have also been told that it is useful for copying into fixed length
> char arrays which are not intended to be null-terminated when full.
> I am aware of such string representations, but those aren't the standard
> C string representation and so the question arises as to why the
> standard string library should include a function that doesn't fit the
> usual representation of strings.

Isn't it nice that there IS a function that handles the non-standard case.
I think your question really should be why doesn't the standard library
include a function that does a null terminated strncpy.
-- 
Michael Sullivan          uunet!jarthur.uucp!aqdata!sullivan
aQdata, Inc.
San Dimas, CA



More information about the Comp.lang.c mailing list