NNS_FndGetPrevListObject

Syntax

#include <nnsys/fnd.h>
void* NNS_FndGetPrevListObject( const NNSFndList* list, const void* object );

Arguments

list Pointer to the list structure
object Pointer to the current object

Return Values

Returns a pointer to the object in the list that is one object before the specified object. Returns NULL if there is no previous object.

Description

Returns the pointer to the previous object in the list (the one before the object designated with object). Returns the pointer to the object connected to the end of the list if object is set to NULL. Returns NULL if there is no previous object.

The following process can be carried out to access all objects in the list in reverse order.


    void* object = NULL;

    while ((object = NNS_FndGetPrevListObject(list, object)) != NULL)
    {
        ......
    }

See Also

NNS_FndGetNextListObject
NNS_FndNthListObject

Revision History

2004/10/21 Corrected the sample code in the description.
2004/02/02 Initial version.


CONFIDENTIAL