Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: strncpy() and NULL termination

From: Eivind Eklund <eivind(at)dimaga.com>
Date: Sun Feb 16 1997 - 14:47:14 EST


At 02:20 PM 2/16/97 -0500, Charles Henrich wrote:
>> Better: (IMHO - as this is more robust to code changes)

Then you don't do that. That's hopefully fairly obvious. I'll admit it isn't quite that safe for that kind of code changes; OTOH, it usually prevent people from doing the obvious typos "oh, was that size for _that_ buffer? I didn't notice..." which come fairly often.

Eivind Eklund perhaps(at)yes.no http://maybe.yes.no/perhaps/ eivind@freebsd.org Received on Sun Feb 16 11:48:50 1997

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:41:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library