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

List:       kde-devel
Subject:    Re: dumb C++ question
From:       Rik Hemsley <rik () rikkus ! demon ! co ! uk>
Date:       1999-05-23 13:42:11
[Download RAW message or body]


Stephan:

> Hmm, what I've done now is to call malloc(1) when
> I get a new(0) as malloc(0) is not allowed.

Don't bother.

new(0) is ok.

Do a sizeof(*var) and see what you get. With char (not QChar) it should give 1.

Cheers,
Rik


--
KDE - Colour outside the lines  : http://www.kde.org
[[without]] - software for KDE  : http://without.netpedia.net

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

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