Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!apple!oliveb!amdahl!rtech!llama!fredb From: fredb@llama.rtech.UUCP (Fred Buechler) Newsgroups: comp.lang.c Subject: Re: strncpy Message-ID: <4356@rtech.rtech.com> Date: 22 Dec 89 14:59:45 GMT References: <11509@csli.Stanford.EDU> <11494@goofy.megatest.UUCP> Sender: news@rtech.rtech.com Reply-To: fredb@llama.UUCP (Fred Buechler) Organization: Relational Technology, Inc. Alameda, CA Lines: 11 From article <11509@csli.Stanford.EDU>, by poser@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.