summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_prev_link.rst
blob: 2b887db657c7aa4d740bb6fb4c7165138404212c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PR_PREV_LINK
============

Returns the preceding element in a list.


Syntax
------

.. code::

   #include <prclist.h>

   PRCList *PR_PREV_LINK (PRCList *elemp);


Parameter
~~~~~~~~~

``elemp``
   A pointer to the element.


Returns
~~~~~~~

A pointer to a list element.


Description
-----------

:ref:`PR_PREV_LINK` returns a pointer to the element preceding the
specified element. It can be used to traverse a list. The preceding
element is not removed from the list.