# ENV_GetLastResourceSetForIter

## C Specification

      #include <nitro/env.h>

      ENVResource* ENV_SetLastResourceSetForIter( ENVResourceIter* iter );

## Arguments

iter | The resource iterator.

## Return Values

None.

## Description

Gets the resource array for the last resource that was searched for using the resource iterator in the resource search.

`ENV_SearchByClass, ENV_SearchByMember, ENV_SearchByType, ENV_SearchByPartialName`

This is used for obtaining which resource belongs to which resource array after the resources are obtained with the above-mentioned functions that searches the resources using the resource iterators.

Immediately after initializing the iterator with `ENV_InitIter()`, it returns the first array on the list of resource arrays registered within the system.

When the search reaches the end, NULL is returned.

## See Also

`ENV_Init, ENV_InitIter
ENV_SearchByClass, ENV_SearchByMember, ENV_SearchByType, ENV_SearchByPartialName
`

## Revision History

08/29/2005 Initial version.