On Fri, Oct 10, 2008 at 1:30 PM, Vardhan, Sundara (GE Infra, Energy) <sundara.vardhan@xxxxxx> wrote: > Hi All > > Desperate: Do not know if this is the right forum for this > question. Using gcc 4.1.1 on Red Hat Linux, I keep getting negative > pointer value when I try to allocate more than 128000 bytest using > malloc(). Works fine if the value is less than 128000. Any ideas why > this happens. I would very much appreciate your help and input. RETURN VALUE For calloc() and malloc(), the value returned is a pointer to the allocated memory, which is suitably aligned for any kind of variable, or NULL if the request fails. -- Andrew Bell andrew.bell.ia@xxxxxxxxx