From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: sizeof void* ? Date: 8 Nov 2001 11:09:59 GMT Organization: Aachen University of Technology (RWTH) Lines: 16 Message-ID: <9sdp67$fki$1@nets3.rz.RWTH-Aachen.DE> References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1005217799 16018 137.226.32.75 (8 Nov 2001 11:09:59 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 8 Nov 2001 11:09:59 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Raf256 wrote: > how can I here check current size of memory block that begins in ptr ? Best if you don't do it at all. It would make your program limited to a single version of a single programming toolchain, as you'ld have to look into details considered private to the implementation of malloc(). If you need that value, remember it in your program. Anyway: what would you need the previous size of the array for, in a realloc() call? You're just modifying that size anyway, so why bother what it was before? -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.