# FS_SetArchiveProc

## C Specification

      #include <nitro/fs.h>

      void FS_SetArchiveProc(
          struct FSArchive        *p_arc,
          FS_ARCHIVE_PROC_FUNC    proc,
          u32                     flags);

## Description

Specifies a user procedure in an archive.

User procedures are called as callback functions when the archive processes commands or enters certain states. During the processing of the callback, the commands themselves can be replaced by independent processes or things can be left to the default implementation.

For more information about the operation of each command, see `FSCommandType`.

## Caution

## Arguments

`p_arc` | Address of the `FSArchive` structure
`proc` | The user procedure being registered
`flags` | The bit set representing the types of commands sent to the user procedure. These are specified by a combination of `FS_ARCHIVE_PROC_*` flags.

## See Also

`FSArchive`, `FSCommandType`, `FS_ARCHIVE_PROC_*`, `FS_LoadArchive`, `FS_UnloadArchive`

## Revision History

07/12/2004 Initial Version