cURL / Mailing Lists / curl-library / Single Mail


Re: c++ equivalent of getinmemory.c

From: Daniel Stenberg <>
Date: Mon, 13 Aug 2007 10:06:06 +0200 (CEST)

On Mon, 13 Aug 2007, Marcos Pinto wrote:

> i'm looking for a c++ equivalent of getinmemory.c that's shown on
> mainly i'm
> looking for something that uses the c++ new/delete instead of the c
> malloc/realloc/free. any pointers would be greatly

Really, if you can't translate the getinmemory.c example into C++ yourself,
you should rather take that as an exercise and practise the art of C++ as
you'll need it if you're gonna use libcurl and write an application using it
in C++...

Then, C++ has malloc and free as well so you don't _have to_ rewrite it only
because you use C++.

  Commercial curl and libcurl Technical Support:
Received on 2007-08-13