summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/prclist.rst
blob: 05dfdd5255d292adc15906703d945d10eb728a77 (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
PRCList
=======

A circular linked list.


Syntax
------

.. code::

   #include <prclist.h>

   typedef struct PRCListStr PRCList;

   typedef struct PRCListStr {
     PRCList *next;
     PRCList *previous;
   };


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

PRClist defines a node in a circular linked list. It can be used as the
anchor of a list and can be embedded in data structures that are
maintained in a linked list.