Question 7.6

Why am I getting ``warning: assignment of pointer from integer lacks a cast'' for calls to malloc?


Have you #included <stdlib.h>, or otherwise arranged for malloc to be declared properly?

References: H&S Sec. 4.7 p. 101


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback