use
ent_remove(ENTITY*);

any pointer pointing to an entity that's been removed will then return NULL