strncpy

Fred Buechler fredb at llama.rtech.UUCP
Sat Dec 23 01:59:45 AEST 1989


>From article <11509 at csli.Stanford.EDU>, by poser at csli.Stanford.EDU (Bill Poser):
> 
> ... I claim that strncpy is mis-designed and should
> null-terminate. Any comments?
> 
>
I have found strncpy to be useful when working in mixed language environments
where the other languages don't use null terminated strings, particularly to
write shared data structures.

Fred.



More information about the Comp.lang.c mailing list