Warum erhalte ich jedes Mal eine Warnung, wenn ich malloc verwende?

Wenn ich malloc in meinem code:

int *x = malloc(sizeof(int));

Ich bekomme diese Warnung von gcc:

new.c:7: warning: implicit declaration of function malloc  
new.c:7: warning: incompatible implicit declaration of built-in function malloc

InformationsquelleAutor der Frage Kredns | 2009-08-04

Schreibe einen Kommentar