[#ASN1_BIT_STRING_set_asc]
= ASN1&lowbar;BIT&lowbar;STRING&lowbar;set&lowbar;asc
:mrdocs:

Set or clear a named bit in an ASN&period;1 bit string using a name table&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;asc(
    xref:ASN1_BIT_STRING.adoc[ASN1&lowbar;BIT&lowbar;STRING]* bs,
    char const* name,
    int value,
    xref:BIT_STRING_BITNAME.adoc[BIT&lowbar;STRING&lowbar;BITNAME]* tbl);
----

== Return Value

1 on success, or 0 if `name` is not found in `tbl&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bs*
| Bit string to update&period;
| *name*
| Bit name to look up in `tbl&period;`
| *value*
| Non&hyphen;zero to set the bit, or 0 to clear it&period;
| *tbl*
| Table of bit names and bit numbers (BIT&lowbar;STRING&lowbar;BITNAME entries)&period;
|===


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