🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #8860

memory allocation in c

#8860
From: Joaquinv Villar
Date: Fri, 19 Jan 1990 00:54
20 lines
1179 bytes
   When i allocate memory in c for example : p = (char *) malloc(a*sizeof(char));
   then malloc allocates the given value  parameter plus 8 bytes.
   those first 8 by
Message-ID: <1326@maestro.htsa.aha.nl>
Date: 17 Jan 90 09:35:44 GMT
Sender: news@maestro.htsa.aha.nl
Reply-To: joaquinv@solist.htsa.aha.nl (Joaquinv Villar)
Organization: AHA-TMF (Technical Institute), Amsterdam, The Netherlands
Lines: 9


   What are these 8 bytes , what is their exact meaning and what
   is the exact format?

   what is the influence of the memory model on those 8 bytes?
   please reply directly to me by using email.

	  Thanks Joaquin  joaquinv@solist.htsa.aha.nl
	  
Technical Details
Message-ID: <109.25b610fb@ceres.physics.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!ceres!dino!sharkey!umich!yale!cs.utexas.edu!uunet!mcsun!hp4nl!maestro!solist.htsa.aha.nl!joaquinv

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!ceres!dino!sharkey!umich!yale!cs.utexas.edu!uunet!mcsun!hp4nl!maestro!solist.htsa.aha.nl!joaquinv
From: joaquinv@solist.htsa.aha.nl (Joaquinv Villar)
Newsgroups: comp.sys.ibm.pc
Subject: memory allocation in c
Keywords: this question concerns the memory allocation function (malloc) in     TURBO C.
Message-ID: <109.25b610fb@ceres.physics.uiowa.edu>
Date: 19 Jan 90 00:54:51 GMT
Lines: 20