C Tool Box 0.1.0
Loading...
Searching...
No Matches
ctb_SNode.h
Go to the documentation of this file.
1/**
2 * @file
3 */
4#ifndef CTB_SNODE_H
5#define CTB_SNODE_H
6
7/**
8 * @brief Singly linked node type
9 */
10typedef struct ctb_SNode ctb_SNode_t;
11
12/**
13 * @brief Singly linked node data structure
14 */
15struct ctb_SNode {
16 ctb_SNode_t * next; /**< Pointer to the next node */
17};
18
19/**
20 * @brief Initializes a singly linked node
21 *
22 * @param self Pointer to a singly linked node
23 * @return Pointer to the initialized singly linked node
24 */
26
27/**
28 * @brief Returns the next node
29 *
30 * @param self Pointer to a singly linked node
31 * @return Pointer to the next node
32 */
34
35#endif // CTB_SNODE_H
ctb_SNode_t * ctb_SNode_getNext(ctb_SNode_t *const self)
Returns the next node.
Definition ctb_SNode.c:11
ctb_SNode_t * ctb_SNode_init(ctb_SNode_t *const self)
Initializes a singly linked node.
Definition ctb_SNode.c:5
Singly linked node data structure.
Definition ctb_SNode.h:15
ctb_SNode_t * next
Definition ctb_SNode.h:16