tail head cat sleep
QR code linking to this page

manページ  — MEMORY

名称

malloc, free, realloc, calloc, alloca – 一般的なメモリ割り当て操作

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <stdlib.h>

void *
malloc(size_t size);

void
free(void *ptr);

void *
realloc(void *ptr, size_t size);

void *
calloc(size_t nelem, size_t elsize);

void *
alloca(size_t size);

解説

この関数は、呼出しプロセスのメモリの割り当てと解放を行ないます。 詳細については、それぞれのマニュアルページを参照してください。

関連項目

alloca(3), calloc(3), free(3), malloc(3), realloc(3)

規格

この関数は、 alloca() を除き、 ISO/IEC 9899:1990 ("ISO C90") に適合しています。

MEMORY (3) June 4, 1993

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps.
— The Unix Haters' handbook