POINTER p; // the pointer to receive the list member pointer (should be a user type) INDEX idx; // indexer PLIST pList; // some list. LIST_FORALL( pList, idx, POINTER, p ) { // p will never be NULL here. // each link stored in the list is set to p here.. // this is a way to remove this item from the list... SetLink( &pList, idx, NULL ); if( some condition ) break; }
Another example that uses data and searches..