On 29 August 2016 at 13:58, Christian Robert <christian.rob...@polymtl.ca>
wrote:

> On 2016-08-29 01:21, Elias Mårtenson wrote:
>
>> They are, but if they are not found in the local directory, they are also
>> searched for in the system directories.
>>
>
> and if so, why did the compiler didn't find "malloc.h" ?  was not at all
> in system defaults ? (don't know at all about OS X)
>

Because he has to use <malloc/malloc.h>. That said, if you want to just use
malloc then you should include <stdlib.h>. malloc.h is when you want to
access non-standard low-level memory allocation details (such as statistics
or debugging options).

Regards,
Elias

Reply via email to