summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_insert_after.rst
blob: b51377e3dcd3c12a99a6f2c7e8dc9df53ecb1356 (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_AFTER
===============

Inserts an element after another element in a circular list.


Syntax
------

.. code::

   #include <prclist.h>

   PR_INSERT_AFTER (
      PRCList *elemp1
      PRCList *elemp2);


Parameters
~~~~~~~~~~

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


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

PR_INSERT_AFTER inserts the element specified by ``elemp1`` into the
circular list, after the element specified by ``elemp2``.