[En-Nut-Discussion] malloc versus NutHeapAlloc

Michel unreal at home.nl
Tue Aug 26 14:23:01 CEST 2003


Hi,

I was wandering why sometimes I see 'malloc()' and 'free()' being used
instead of 'NutHeapAlloc()' and 'NutHeapFree()'?

In e.g. chat.c and dhcp.c (from CVS) malloc and free are used.

Why is this? Does it have any (dis)advantages? I assumed that Nut/OS
automatically allocates all available memory to a heap pool so malloc
shouldn't be able to allocate any memory, right?

Greets,

Michel




More information about the En-Nut-Discussion mailing list