cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: c++ equivalent of getinmemory.c

From: Daniel Stenberg <daniel_at_haxx.se>
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
> http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c 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: http://haxx.se/curl.html
Received on 2007-08-13