random_r.3: Add some usage notes for setstate_r()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-25 09:00:12 +13:00
parent 91e37268d6
commit 4efbcb17e9
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ function is like
except that it modifies the state in the object pointer to by
.IR buf ,
rather than modifying the global state variable.
\fIstate\fP must first have been initialized
using
.BR initstate_r ()
or be the result of a previous call of
.BR setstate_r ().
.SH RETURN VALUE
All of these functions return 0 on success.
On error, \-1 is returned, with