Skip to main content

test_bit

Discworld driver help

test_bit

Name

test_bit() - test a bit in a bitstring

Synopsis

int test_bit( string str, int n );

Description

Return 1 if bit `n' was set in string `str', and zero (0) otherwise.

See also

set_bit(), clear_bit()