daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. __device__ void clear(Collision **head, int i){
  2.         Collision **tracer = head; //start at the first element
  3.         while( *tracer ){
  4.                 if( (*tracer)->i == i ){
  5.                         *tracer = (*tracer)->next; //remove this element
  6.                 }else{
  7.                         tracer = &(*tracer)->next; //continue through the list
  8.                 }
  9.         }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top