Re: tracking down memory leaks?

"Davion Kalhen" <[email protected]> Sun, 7 May 2006 18:58:01 -0700
Newsgroups gmane.games.devel.mud.rom
Message-ID <[email protected]>
> void copy_bitmask(BITMASK to, BITMASK *from)
> {
>     BITMASK mask;
>     BMlist *pBlist;
>
>     for(pBlist = to.int_list;pBlist;pBlist = pBlist->next)//remove all the bits
>         remove_bit(&to,pBlist->tar_mask);
>
>     init_bitmask(&mask);
>     for(pBlist = from->int_list;pBlist;pBlist = pBlist->next)//add the new ones
>         set_bit(&mask,pBlist->tar_mask);
>     to = mask;
>     return;
>
> }
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom