1PR_UnloadLibrary
2================
3
4Unloads a library loaded with :ref:`PR_LoadLibrary`.
5
6
7Syntax
8------
9
10.. code:: eval
11
12   #include <prlink.h>
13
14   PRStatus PR_UnloadLibrary(PRLibrary *lib);
15
16
17Parameters
18~~~~~~~~~~
19
20The function has this parameter:
21
22``lib``
23   A reference previously returned from :ref:`PR_LoadLibrary`.
24
25
26Returns
27~~~~~~~
28
29The function returns one of the following values:
30
31-  If successful, ``PR_SUCCESS``.
32-  If unsuccessful, ``PR_FAILURE``. Use :ref:`PR_GetError` to find the
33   reason for the failure.
34
35
36Description
37-----------
38
39This function undoes the effect of a :ref:`PR_LoadLibrary`. After calling
40this function, future references to the library using its identity as
41returned by :ref:`PR_LoadLibrary` will be invalid.
42