trq_last_msg()#
trq_last_msg() retrieves the last message in the queue, allowing iteration from the most recent entry.
Prototype
q_msg trq_last_msg(
tr_queue trq
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The queue instance from which to retrieve the last message. |
Return Value
Returns a q_msg representing the last message in the queue, or NULL if the queue is empty.
Notes
Use trq_prev_msg() to iterate backward through the queue.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples