Sascha Wildner wrote:
> Mark Cullen wrote:
>
>
>>What does the ^= mean in the above?
>
>
> Assign bitwise xor.
>
> If you want to learn C, these threads might be interesting to you:
>
> http://leaf.dragonflybsd.org/mailarchive/kernel/2004-09/index.html#00084
> http://leaf.dragonflybsd.org/mailarchive/kernel/2004-10/index.html#00006
>
> Sascha
>
Thanks.
Just for clarification, am I right in saying that.. if I did (and have
done in this case)
tmp_cp = malloc(sizeof(char) * 10);
cp = tmp_cp
free(tmp_cp);
tmp_cp = NULL;
then cp would now be pointing to a block of memory that could be used by
some other process/overwritten? Would that not make it impossible for me
to actually free tmp_cp, as cp needs it?
--
Internet Explorer? Try FireFox at http://www.mozilla.org/products/firefox/
Outlook Express? Try ThunderBird at
http://www.mozilla.org/products/thunderbird/