[#BN_set_word]
= BN&lowbar;set&lowbar;word
:mrdocs:

Set BIGNUM `a` to the single&hyphen;word value `w&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;set&lowbar;word(
    xref:BIGNUM.adoc[BIGNUM]* a,
    unsigned long w);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Destination BIGNUM&period;
| *w*
| Word value to assign (non&hyphen;negative)&period;
|===


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