[#BN_is_bit_set]
= BN&lowbar;is&lowbar;bit&lowbar;set
:mrdocs:

Test whether bit `n` of a BIGNUM is set&period;

== Synopsis

Declared in `&lt;openssl&sol;bn&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;is&lowbar;bit&lowbar;set(
    xref:BIGNUM.adoc[BIGNUM] const* a,
    int n);
----

== Return Value

1 if the bit is set, or 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Value to test&period;
| *n*
| Bit index (0 is the least&hyphen;significant bit)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
