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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,291件の閲覧回数
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 解決策
1,056件の閲覧回数
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 返信
1,057件の閲覧回数
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 件の賞賛
返信