# FS_GetResultCode

## Syntax

  `#include <nitro/fs.h>`
  `static inline FSResult FS_GetResultCode(volatile const FSFile *p_file);`

## Arguments

p_file | Address of the `FSFile` structure.

## Return Values

Returns the result of the last process executed by the specified file.

## Description

Gets the result of the last process executed by the specified file. The result is undefined if this function was called to the file that has not yet been processed or is being processed.

If you want to get the result of the last operation that was performed on a specific archive, use `FS_GetArchiveResultCode()`.

## See Also

`FSFile
FSResult
FS_GetArchiveResultCode`

## Revision History

2007/11/02 Added a description of the `FS_GetArchiveResultCode` function.
2004/07/13 Initial version.

CONFIDENTIAL