int test_bit( string str, int n );
Returns 1 if bit 'n' was set in string 'str', and zero otherwise.
See also: set_bit , clear_bit
Beek @ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere