From: Hans-Bernhard Broeker 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: References: 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 wrote: > can someone tell me how to allocate memory blocks of size above 1MB in djgpp Just do it. #include /*...*/ 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.