# NNS_FndGetArchiveFileByIndex

## Syntax

      #include <nnsys/fnd.h>

      void* NNS_FndGetArchiveFileByIndex(NNSFndArchive& archive, u32 index);

## Arguments

archive | The pointer to the `NNSFndArchive` structure.
index | The index value of the file.

## Return Values

The address where the file is stored. If the file cannot be found, the function returns NULL.

## Description

This function gets the storage address of the file with the index value specified by `index`. The pointer obtained with this function points to the content of the archive binary loaded in memory. To copy from this archive binary, read it using the file system's API.

        extern void* archiveBinary;

        NNSFndArchive archive;

        if (NNS_FndMountArchive(&archive, "ARC", archiveBinary))
        {
            void* data = NNS_FndGetArchiveFileByName(&archive, 10);

            ......
            ......
        }

## See Also

NNS_FndGetArchiveFileByName, NNS_FndOpenArchiveFileByIndex

## Revision History

2004/05/14 Initial version.

CONFIDENTIAL