What is the difference between _mem_alloc() and _mem_alloc_zero()?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is the difference between _mem_alloc() and _mem_alloc_zero()?

跳至解决方案
663 次查看
parkjaeyeon
Contributor I

Hello.

I use K60 MCU with MQX.

I wonder what is the difference between _mem_alloc() and _mem_alloc_zero()..

Ask for answers.

Thanks.

Have a good day~.

0 项奖励
1 解答
428 次查看
stevejanisch
Contributor IV

The zero function fills the allocated space with zeros... akin to doing a memset.  Without it you get the space but it isn't initialized.

在原帖中查看解决方案

0 项奖励
1 回复
429 次查看
stevejanisch
Contributor IV

The zero function fills the allocated space with zeros... akin to doing a memset.  Without it you get the space but it isn't initialized.

0 项奖励