1 Star 0 Fork 5.4K

OpenHarmony_EU incubator / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
malloc-h.md 4.89 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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-harmony-eu-incubator/docs.git
git@gitee.com:open-harmony-eu-incubator/docs.git
open-harmony-eu-incubator
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891