# FS_GetAttachedArchive

## Syntax

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

## Arguments

p_file | Address of the `FSFile` structure. It must hold 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

2004/07/13 Initial version.

CONFIDENTIAL