DragonFly BSD
DragonFly bugs List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cu coredumps


To: Sascha Wildner <saw@xxxxxxxxx>
From: Mark Cullen <mark.cullen@xxxxxxxxxxxxx>
Date: Wed, 27 Oct 2004 18:36:23 +0100

7fd649$0$743$415eb37d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
In-Reply-To: <417fd649$0$743$415eb37d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 35
NNTP-Posting-Host: 81.178.66.177
X-Trace: 1098898575 crater_reader.dragonflybsd.org 744 81.178.66.177
Xref: crater_reader.dragonflybsd.org dragonfly.bugs:2877

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/



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]