🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308565

Re: Jak sprawdzić czy new przydzielił mi pamięć?

#308565
From: Borneq
Date: Wed, 18 May 2016 09:22
14 lines
1274 bytes
W dniu 18.05.2016 o 11:18, Borneq pisze:
> #include <stdint.h>
>
> int main()
> {
>     uint8_t *bigbuf;
>     bigbuf = new uint8_t[4000000000*1024 * 1024 * 1024];
>     return 0;
> }
>
> Ani nie ma wyjątku ani bigbuf nie jest NULL. Co zrobić?

Jest wyjątek, a ta duża liczba po prostu się zawijała i okazywała się 
mniejszą.
Technical Details
Message-ID: <nhhc84$p40$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <nhhc0e$oqe$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: Jak sprawdzić czy new
 przydzielił mi pamięć?
Date: Wed, 18 May 2016 11:22:12 +0200
Organization: ATMAN - ATM S.A.
Lines: 14
Message-ID: <nhhc84$p40$1@node2.news.atman.pl>
References: <nhhc0e$oqe$1@node2.news.atman.pl>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1463563332 25728 91.239.205.105 (18 May 2016 09:22:12 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 18 May 2016 09:22:12 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
In-Reply-To: <nhhc0e$oqe$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit