#include <stack_api.h>
◆ Peek
Peek at the top item without removing it (O(1)).
- Parameters
-
- Returns
- Result with pointer descriptor to the top element; JUNO_STATUS_INVALID_SIZE_ERROR if empty.
◆ Pop
Pop the top item into tReturn (O(1)).
- Parameters
-
| ptStack | Stack instance. |
| tReturn | Pointer trait receiving the popped item (copied out). |
- Returns
- JUNO_STATUS_SUCCESS on success; JUNO_STATUS_INVALID_SIZE_ERROR if empty; or pointer/array errors.
◆ Push
Push an item onto the top of the stack (O(1)).
- Parameters
-
| ptStack | Stack instance. |
| tItem | Pointer trait describing the item to copy into the stack. |
- Returns
- JUNO_STATUS_SUCCESS on success; JUNO_STATUS_INVALID_SIZE_ERROR if full; or pointer/array errors.
The documentation for this struct was generated from the following file:
- /home/runner/work/libjuno/libjuno/include/juno/ds/stack_api.h