🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

memory allocation in c

#8865
From: Joaquinv Villar
Date: Thu, 18 Jan 1990 23:54
20 lines
1215 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: <108.25b602c4@ceres.physics.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!mintaka!yale!umich!sharkey!dino!ceres!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!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!clyde.concordia.ca!mcgill-vision!bloom-beacon!mintaka!yale!umich!sharkey!dino!ceres!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!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: <108.25b602c4@ceres.physics.uiowa.edu>
Date: 18 Jan 90 23:54:11 GMT
Lines: 20