C Tool Box 0.1.0
Loading...
Searching...
No Matches
ctb_DNode.h File Reference

Go to the source code of this file.

Data Structures

struct  ctb_DNode
 Doubly linked node data structure. More...
 

Typedefs

typedef struct ctb_DNode ctb_DNode_t
 Doubly linked node type.
 

Functions

ctb_DNode_tctb_DNode_init (ctb_DNode_t *const self)
 Initializes a doubly linked node.
 
ctb_DNode_tctb_DNode_getNext (ctb_DNode_t *const self)
 Returns the next node.
 
ctb_DNode_tctb_DNode_getPrev (ctb_DNode_t *const self)
 Returns the previous node.
 

Function Documentation

◆ ctb_DNode_getNext()

ctb_DNode_t * ctb_DNode_getNext ( ctb_DNode_t *const self)

Returns the next node.

Parameters
selfPointer to a doubly linked node
Returns
Pointer to the next node

◆ ctb_DNode_getPrev()

ctb_DNode_t * ctb_DNode_getPrev ( ctb_DNode_t *const self)

Returns the previous node.

Parameters
selfPointer to a doubly linked node
Returns
Pointer to the previous node

◆ ctb_DNode_init()

ctb_DNode_t * ctb_DNode_init ( ctb_DNode_t *const self)

Initializes a doubly linked node.

Parameters
selfPointer to a doubly linked node
Returns
Pointer to the initialized doubly linked node