[#BN_asc2bn] = BN_asc2bn :mrdocs: Parse an ASCII decimal or hexadecimal integer into a BIGNUM. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_asc2bn( xref:BIGNUM.adoc[BIGNUM]** a, char const* str); ---- == Description A leading '‐' sets the negative flag. Trailing non‐digit characters are ignored after a successful parse of a number prefix. == Return Value 1 on success, or 0 on parse error. == Parameters [cols="1,4"] |=== | Name| Description | *a* | Location of the BIGNUM pointer; allocated if *`a` is NULL. | *str* | Decimal digits, or a hex string with a leading "0x" / "0X". |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#