Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site peora.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!hjuxa!petsd!peora!jer From: jer@peora.UUCP (J. Eric Roskos) Newsgroups: net.unix,net.unix-wizards,net.arch,net.lang.c Subject: Re: get size of malloc'd object Message-ID: <2219@peora.UUCP> Date: Wed, 25-Jun-86 15:44:05 EDT Article-I.D.: peora.2219 Posted: Wed Jun 25 15:44:05 1986 Date-Received: Fri, 27-Jun-86 06:52:50 EDT References: <165@daisy.UUCP> <334@valid.UUCP> <2206@peora.UUCP> <2081@umcp-cs.UUCP> <1043@umd5.UUCP> Organization: Concurrent Computer Corporation, Orlando, Fl Lines: 10 Xref: watmath net.unix:8393 net.unix-wizards:18602 net.arch:3575 net.lang.c:9578 > Yes, but I think there is a question whether you want to tell the user > about 1. how much he ASKED for, or 2. how much happens to BE there... The only portable value is how much he asked for. If he got more than that, it is just an artifact of the memory allocation scheme, which would be implementation-dependent, and thus he shouldn't use it; allowing him to know how much extra he really got is a step in the direction of promoting him to use it, which would seem not to be a good idea. -- E. Roskos