| delorie.com/archives/browse.cgi | search |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: memory allocation help |
| Date: | 20 Nov 2002 17:19:05 GMT |
| Organization: | Aachen University of Technology (RWTH) |
| Lines: | 19 |
| Message-ID: | <argg69$cf4$1@nets3.rz.RWTH-Aachen.DE> |
| References: | <b79b971d DOT 0211200908 DOT 4b10d588 AT posting DOT google DOT com> |
| NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
| X-Trace: | nets3.rz.RWTH-Aachen.DE 1037812745 12772 137.226.32.75 (20 Nov 2002 17:19:05 GMT) |
| X-Complaints-To: | abuse AT rwth-aachen DOT de |
| NNTP-Posting-Date: | 20 Nov 2002 17:19:05 GMT |
| Originator: | broeker@ |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
ganesh <ganeshs123 AT rediffmail DOT com> wrote: > can someone tell me how to allocate memory blocks of size above 1MB in djgpp Just do it. #include <stdlib.h> /*...*/ mytype *mypointer = malloc(5000000); That's all there is to it. > also how do i read and write to the allocated blocks Just like with any other allocated block. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |