# NNS_FndGetPrevListObject

## C Specification

      #include <nnsys/fnd.h>

      void* NNS_FndGetPrevListObject( NNSFndList* list, void* object );

## Arguments

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

## Return Values

Returns the previous object in the list. Returns NULL if there is no previous object.

## Description

Returns the pointer to the previous object in the list 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

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