---
name: "test_bit"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/test_bit"
---

# test\_bit(9)

Determine whether a bit is set

## NAME

test\_bit - Determine whether a bit is set

## SYNOPSIS

**bool test\_bit(int** *nr***, const volatile unsigned long \*** *addr***);**

## ARGUMENTS

*nr*

bit number to test

*addr*

Address to start counting from

## COPYRIGHT
