[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: dumb C++ question
From:       Hans Meine <hansmeine () dial-net ! de>
Date:       1999-05-27 18:09:35
[Download RAW message or body]

On Sun, 23 May 1999, Stephan Kulow wrote:
>Mario Weilguni wrote:
>> It returns the smallest block possible, 16 bytes. It need to return something,
>> to be able to realloc() it lateron.
I thought about this and I am wondering if return 0; would not have not it. (It
could become a "real" alloc when reallocating.) Anyhow...

>Hmm, what I've done now is to call malloc(1) when
>I get a new(0) as malloc(0) is not allowed.
>
>Greetings, Stephan
>
>-- 
>Und sie nannten ihn, wie er selbst unterschrieb -
>Den Trojanischen Pferdedie
--

Ciao,
   /  /
  /--/
 /  / ANS
_____________________________________________________________________
Hans Meine                                mail me: hans_meine@gmx.net
Harkortstr. 138                       http://www.dialnet.de/hansmeine
D-22765 Hamburg                              ICQ: RastaJoe <28674493>
[Germany]                                     Phone: ++49-40-38612523

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic