Date: Fri, 19 May 2000 11:42:23 +0200 Message-Id: <200005190942.LAA19117@acp3bf.physik.rwth-aachen.de> From: Hans-Bernhard Broeker To: djgpp AT delorie DOT com Subject: Re: allocated memory size X-Newsgroups: comp.os.msdos.djgpp In-Reply-To: <39249FAE.F0428E1F@fujixerox.co.jp> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk In article <39249FAE DOT F0428E1F AT fujixerox DOT co DOT jp> you wrote: > I am sorry if my question are too silly. I am absolute novice at > programming in C and that is the reason for the question. > Problem: > Is there any way I can find out the number of bytes of memory that has > been allocated to a pointer. None that would be reliable. If you think you need that information, you'll have to keep track of it yourself. Especially since you describe yourself as a C novice, you should *never* do such things. Stick to the core of the language while you're still learning. Don't try to use 'fancy' things until you understand the language well enough to be sure you need them. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.