a quick malloc question
drejcicaREMOVE_at_volja.net
Date: 09/27/03
- Next message: chaoith: "Re: a quick malloc question"
- Previous message: Pascal Bourguignon: "Re: returning (char **) values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Sep 2003 22:09:06 GMT
Hello,
if I use a variable multiple times within my program, is it better to
declare it as a pointer and malloc() it every time (if the value of the
variable is changed many times)? If it's not a pointer, does it lead to
a memory leak? However, if it is a pointer, I can use one and the same
address every time I change its value.
Thanks,
andrej
--
echo ${girl_name} > /etc/dumpdates
- Next message: chaoith: "Re: a quick malloc question"
- Previous message: Pascal Bourguignon: "Re: returning (char **) values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|