linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* malloc
@ 2002-06-17 21:26 Earl R. Lapus
  2002-06-17 13:48 ` malloc Glynn Clements
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Earl R. Lapus @ 2002-06-17 21:26 UTC (permalink / raw)
  To: linux-c-prog

hi,
   I tried doing this:
       ucp = (unsigned char *) malloc(0);
   it was successful and returned a valid address. I was kinda hoping
   it would do something weird...When I looked at the man page It said 
   something like.. "If your application needs to generate empty objects, 
   you may use malloc(0) for this purpose..."

   So my questions are:
       What do you mean when you say EMPTY OBJECT?
       Does it ocuppy any memory storage?

=========================
 ...what i want and what i need
 IS and WILL always be FREE...
                    -brandon boyd-
=========================

^ permalink raw reply	[flat|nested] 7+ messages in thread
* malloc
@ 2010-12-20  4:39 ratheesh k
  2010-12-20  4:43 ` malloc Santosh Sivaraj
  2010-12-27 18:51 ` malloc Uriel Corfa
  0 siblings, 2 replies; 7+ messages in thread
From: ratheesh k @ 2010-12-20  4:39 UTC (permalink / raw)
  To: linux-c-programming

Is the below statement right or wrong ?

malloc tries to allocate continous memmory space in virtual address
space.  not in physical address space.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-27 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 21:26 malloc Earl R. Lapus
2002-06-17 13:48 ` malloc Glynn Clements
2002-06-17 14:32 ` malloc Jason P. Winters
2002-06-17 16:47 ` malloc Mehran Rezaei
  -- strict thread matches above, loose matches on Subject: below --
2010-12-20  4:39 malloc ratheesh k
2010-12-20  4:43 ` malloc Santosh Sivaraj
2010-12-27 18:51 ` malloc Uriel Corfa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).