[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
malloc
If I needed to malloc a chunck of memory in one source file, change it,
then use the data in another source file, could I just extern the pointer
to the memory in a header file and include it [the header] in both files?
So, (assuming malloc is called before the other file needs it) will the
file which does not contain malloc just automagically see the memory block
and everything will be good and well?
Thanks,
Jordan Bettis.
"Damn it! Somebody spiked my coffee with water" --Larry Wall
--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.
- Follow-Ups:
- Re: malloc
- From: Steven Pritchard <steve@silug.org>