http://www.perlmonks.org?node_id=81246
malloc's user image
User since: May 17, 2001 at 18:23 UTC (23 years ago)
Last here: Aug 28, 2006 at 15:02 UTC (18 years ago)
Experience: 669
Level:Pilgrim (8)
Writeups: 37
Location:Chelsea, Manhattan, NY
User's localtime: Apr 16, 2024 at 01:48 -05
Scratchpad: View
For this user:Search nodes

envision the white lotus

<CODE> $email = dan123@ajvar123.123org; $email =~ s/\d//g;


MALLOC(3)           Linux Programmer's Manual      MALLOC(3)
NAME
       calloc,  malloc, free, realloc - Allocate and free dynamic memory

SYNOPSIS
       #include <stdlib.h>

       void *malloc(size_t size);

DES‎CRIP‎TION

malloc() allocates size bytes and returns a pointer to the
         allocated memory.  The memory is not cleared.

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.

CONFORMING TO
       ANSI-C

SEE ALSO
       brk(2)

NOTES
       Crashes in malloc(), free() or realloc() are 
almost always related to heap corruption, such as 
overflowing  an  allocated chunk or freeing the same 
pointer twice.

GNU                       April 4, 1993                  1