21.08.2015, 16:44
What about adding "Iter_RandomFree" ? It would be a combination of Iter_Random (which returns randomly a used value) and Iter_Free (which returns the first non-used value), it should return a random free value.
Maybe even Iter_CountFree ? A combination of Iter_Count and Iter_Free, which would count the free slots. If it could be in a better way than this:
Maybe even Iter_CountFree ? A combination of Iter_Count and Iter_Free, which would count the free slots. If it could be in a better way than this:
pawn Code:
printf( "Free: %d", ITERATOR_MAX_SIZE - Iter_Count( ITERATOR_NAME ) );