In a while loop I want to see if a text is still valid. So far the only way I have found to see if this is true is with this
while(ptr_for_handle(handle(my_text)) != NULL)
ptr_for_handle is a medium speed function and if I can help it I do not want to use it in a while loop, handle says it is fast but that still seems like a lot of waster resources here.
(my_text) (my_text != NULL) do not work.
The text is removed with ptr_remove()
Any faster ideas then what I have tried?