malloc(0) and ::operator new(0)

From: LBRO <lbro_at_dscc.dk>
Date: Thu, 16 Jul 1998 14:02:51 +0100

     I am testing the tool THIRD that is a memory leak finding program.
     It works beautifully, but
     
     it makes ::operator new(0) return 0 even if it did return != 0.
     
     That's funny, but what is the standard ?
     
     ::operator new(0) on DU4.0D returns != 0 but
     malloc(0) on DU4.0D returns 0
     
     
     
     yours,
     Lars Bro (lbro_at_dsaa.dk)
Received on Thu Jul 16 1998 - 14:05:58 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT