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


alloca

Syntax

#include <stdlib.h>

void *alloca(size_t _size)

Description

Allocate memory that will be automatically released when the current procedure exits. Note that, when compiling with gcc, alloca is a built-in function and not a library call.

Return Value

A pointer to the memory, else NULL.

Portability

not ANSI, not POSIX

Example

q = alloca(strlen(x)+1);
strcpy(q, x);


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

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 1998   by DJ Delorie     Updated Dec 1998  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)