Re: strcpy versus strncpy

Ben Laurie (ben@ALGROUP.CO.UK)
Tue, 03 Mar 1998 18:50:52 +0000

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