[#BN_hex2bn]
= BN&lowbar;hex2bn
:mrdocs:

Parse a hexadecimal ASCII string into a BIGNUM&period;

== Synopsis

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

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

== Return Value

Number of characters consumed from `str` on success, or 0 on parse error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Location of the BIGNUM pointer&semi; allocated if &ast;`a` is NULL&period;
| *str*
| Hex digit string&semi; a leading &apos;&hyphen;&apos; sets the negative flag&period;
|===


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