# FS_GetAttachedArchive

## C Specification

  `#include <nitro/fs.h>`
  `static inline FSArchive* FS_GetAttachedArchive(const FSFile *p_file);`

## Arguments

`p_file` | Address of the `FSFile` structure It must retain the file information or the directory location.

## Return Values

Returns a pointer to the archive associated with the specified file.

## Description

Returns a pointer to the archive associated with the specified file. Returns the pointer to the archive if it exists. The value is undefined when calling this function to the `FSFile` structure without the file information or the directory location.

## See Also

`FSFile`, `FSArchive`

## Revision History

07/13/2004 Initial version.