Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: strncpy() and NULL termination

From: Charles Henrich <henrich(at)crh.cl.msu.edu>
Date: Sun Feb 16 1997 - 14:20:46 EST

> Better: (IMHO - as this is more robust to code changes)

> strncpy(buf, somestring, sizeof(buf));
And when buf is a pointer? :)

-Crh

       Charles Henrich Michigan State University henrich@msu.edu

                         
http://pilot.msu.edu/~henrich
Received on Sun Feb 16 23:09:04 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