FUNCTION SMC_GetObjFromEnd : POINTER TO SMC_GEOINFO
Returns a pointer to the n-last object (start counting from the end) of the queue (poq). For N=0 the last element in the list will be returned.
Note
In general it is not recommended to apply this function to the out-queue of a path preprocessing function block. The out queue may be modified concurrently by a different task. An element assumed to be in the out queue might no longer be present for this reason.
InOut:
Scope |
Name |
Type |
Comment |
Return |
SMC_GetObjFromEnd |
POINTER TO SMC_GEOINFO |
|
Input |
poq |
POINTER TO SMC_OUTQUEUE |
The out queue |
N |
UINT |
Index of object, counting is started with N=0 for the last element. |