[#ASN1_BIT_STRING_set_bit]
= ASN1&lowbar;BIT&lowbar;STRING&lowbar;set&lowbar;bit
:mrdocs:

Set or clear a single bit in an ASN&period;1 BIT STRING&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;BIT&lowbar;STRING&lowbar;set&lowbar;bit(
    xref:ASN1_BIT_STRING.adoc[ASN1&lowbar;BIT&lowbar;STRING]* a,
    int n,
    int value);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Bit string to update (resized as needed)&period;
| *n*
| Zero&hyphen;based bit index to change&period;
| *value*
| Nonzero to set the bit, or 0 to clear it&period;
|===


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