www.delorie.com/djgpp/doc/libc-2.01/libc_292.html   search  
Go to the first, previous, next, last section, table of contents.


free

Syntax

#include <stdio.h>

void free(void *ptr);

Description

Returns the allocated memory to the heap (see section malloc). If the ptr is NULL, it does nothing.

Return Value

None.

Example

char *q = (char *)malloc(20);
free(q);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997