[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Returnerin af at "string" array



Mads Bondo Dydensborg wrote:
> 
> On 8 Feb 2001, Anders Melchiorsen wrote:
> 
> > - Du glemmer at checke for, om malloc() returnerer 0.
> 
> Gør malloc _nogensinde_ det? Altså, selvklart, hvis man har disablet
> overcommited memory, eller hvad det hedder, men hvem har det?
> 
> Nu bruger jeg ikke selv malloc til noget - blandt andet
> pga. ovenstående. Men jeg ville da være interesseret i svaret. Jeg er klar
> over hvad der står i man siden, men har du i praksis oplevet at malloc
> returnerer 0?
> 
> Mads

Ja, hvis man fx. prøver at allokere 1GB og der altså er væsentligt
mindre på maskinen! Jeg oplevede der så sent som igår.

/Egon


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *