lkml.org 
[lkml]   [1997]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Memory overcommitting (was Re: http://www.redhat.com/redhat/)
As I have understand, Linux returns ALWAYS success when using malloc(),
because only reason why malloc() would fail, is memory overrun, and this
will never happen in malloc().

So my question is: is there any point in checking whether malloc() returned
NULL (failure) or success? Should i just start using the memory without
checking if the pointer is NULL?

| Tuukka Toivonen <tuukkat@stekt.oulu.fi>
| Homepage: http://stekt.oulu.fi/~tuukkat/
| Try also finger -l tuukkat@stekt.oulu.fi
| Studying information engineering at the University of Oulu
+-----------------------------------------------------------


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.323 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site