[6219] in bugtraq

home help back first fref pref prev next nref lref last post

Re: strcpy versus strncpy

daemon@ATHENA.MIT.EDU (Ben Laurie)
Tue Mar 3 23:48:23 1998

Date: 	Tue, 3 Mar 1998 18:50:52 +0000
Reply-To: Ben Laurie <ben@ALGROUP.CO.UK>
From: Ben Laurie <ben@ALGROUP.CO.UK>
X-To:         Edwin Li-Kai Liu <robin.hood@IBM.NET>
To: BUGTRAQ@NETSPACE.ORG

Edwin Li-Kai Liu wrote:
> If you use C++, you can write a string class (I think someone already did that?
> M$?) that uses dynamic buffer allocation and upon object destruction the buffer
> is released. This will prevent memory hole, but performance suffers!

The string class is part of the Standard C++ Library (or is it STL?
Whatever, it is standard).

Cheers,

Ben.

--
Ben Laurie            |Phone: +44 (181) 735 0686|  Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

home help back first fref pref prev next nref lref last post