# FS_CloseFile

## Syntax

  `#include <nitro/fs.h>`
  `BOOL FS_CloseFile( FSFile *p_file );`

## Arguments

p_file | Address of the `FSFile` structure.

## Return Values

If it correctly closes the file, it returns a value of TRUE. Otherwise it returns a value of FALSE.

## Description

This function closes an open file.

## Note

This function cannot be called from the interrupt handler (IRQ mode).
Also note that in some cases processing may not end if interrupts are left prohibited.

## See Also

`FS_OpenFileEx
FS_OpenFileFast`

## Revision History

2008/10/02 Updated the See Also list.
2004/09/24 Added the description in the Caution section regarding the conditions for calling this function.
2004/04/01 Initial version.

CONFIDENTIAL