delorie.com/archives/browse.cgi | search |
From: | leger_v AT bluewin DOT ch |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Problem with malloc() and integers |
Date: | Sun, 26 Apr 1998 15:28:09 +0200 |
Organization: | Swisscom AG, the blue window |
Lines: | 15 |
Message-ID: | <35433669.5A75@bluewin.ch> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 980426121334 DOT 19566U-100000 AT is> |
NNTP-Posting-Host: | sio22pub90.bluewin.ch |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Here's the source code of the whole program : void main(void) { int i,j; unsigned long *test[10]; for(i=0;i<10;i++) test[i]=(unsigned long *)malloc(64000); for(i=0;i<10;i++) for(j=0;j<64000;j++) test[i][j]=10; } And this program crashes on my computer. Thanx
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |