[#OSSL_PARAM_set_ulong]
= OSSL&lowbar;PARAM&lowbar;set&lowbar;ulong
:mrdocs:

Write `val` into parameter `as` an unsigned long (with range checks)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;PARAM&lowbar;set&lowbar;ulong(
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM]* p,
    unsigned long val);
----

== Return Value

1 on success, or 0 if `is` NULL, wrong type, or out of range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Destination parameter located by key in an OSSL&lowbar;PARAM array&period;
| *val*
| Value to store&period;
|===


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