1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
malloc-h.md 4.92 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

malloc.h

Overview

Related Modules:

MEM

Description:

Declares APIs for allocating and releasing memory.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name

Description

malloc (size_t size)

void * 

Dynamically allocates a block of uninitialized memory with the specified size.

calloc (size_t nmemb, size_t size)

void * 

Dynamically allocates multiple blocks of memory with the specified size.

realloc (void *ptr, size_t size)

void * 

Changes the size of a previously allocated memory block pointed to by ptr to the specified size.

free (void *ptr)

void 

Frees the memory space pointed to by ptr.

memalign (size_t alignment, size_t size)

void * 

Allocates a block of memory with the specified size based on the given alignment mode.

malloc_usable_size (void *ptr)

size_t 

Obtains the size of the memory block pointed to by ptr.

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助