summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_insert_before.rst
blob: 6d6bcc8a3c9227aa0e5fb49e0035d418f050c9a7 (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
PR_INSERT_BEFORE
================

Inserts an element before another element in a circular list.


Syntax
------

.. code::

   #include <prclist.h>

   PR_INSERT_BEFORE (
      PRCList *elemp1
      PRCList *elemp2);


Parameters
~~~~~~~~~~

``elemp1``
   A pointer to the element to be inserted.
``elemp2``
   A pointer to the element before which ``elemp1`` is to be inserted.


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

PR_INSERT_BEFORE inserts the element specified by ``elemp1`` into the
circular list, before the element specified by ``elemp2``.