(void *) ? /* again */
Conor P. Cahill
cpcahil at virtech.uucp
Mon Jan 22 08:50:49 AEST 1990
In article <6200009 at ux1.cso.uiuc.edu>, phil at ux1.cso.uiuc.edu writes:
> void * malloc();
>
> and you should be able to use it like:
>
> long * plong;
> plong = malloc( sizeof(long) );
>
> Is this considered a "legit" warning?
Yes it is a legit warning. To turn off the warning you can do the following:
plong = (long *) malloc( sizeof(long) );
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.lang.c
mailing list