[#ASN1_BIT_STRING_num_asc]
= ASN1&lowbar;BIT&lowbar;STRING&lowbar;num&lowbar;asc
:mrdocs:

Look up the bit number for a named bit in a BIT&lowbar;STRING&lowbar;BITNAME 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;num&lowbar;asc(
    char const* name,
    xref:BIT_STRING_BITNAME.adoc[BIT&lowbar;STRING&lowbar;BITNAME]* tbl);
----

== Return Value

Matching bit number, or &hyphen;1 if `name` is not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| Short or long bit name to match&period;
| *tbl*
| NULL&hyphen;terminated table of named bits (ends when `lname` is NULL)&period;
|===


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