[#ASN1_BIT_STRING_get_bit] = ASN1_BIT_STRING_get_bit :mrdocs: Test whether bit `n` is set in an ASN.1 BIT STRING. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_BIT_STRING_get_bit( xref:ASN1_BIT_STRING.adoc[ASN1_BIT_STRING] const* a, int n); ---- == Return Value 1 if the bit is set, or 0 if clear / out of range / `a` is NULL. == Parameters [cols="1,4"] |=== | Name| Description | *a* | Bit string to query; NULL or short strings are treated as clear. | *n* | Zero‐based bit index. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#