cxDirAddFile(3)

NAME
cxDirAddFile - Adds a file to the directory.

SYNOPSIS
#include <comprex.h> void cxDirAddFile(CxDirectory *dir, CxFile *file);

PARAMETERS

dir The directory.

file
    The file to add.

DESCRIPTION
Adds a file to the directory. Note that this won't actually create a file in that directory. This just modifies the structure itself! The directory will claim the reference on file, and will delete the structure when dir is deleted. If you wish to keep file intact, you must claim a reference to it using CX_LINK().

RETURNS
Nothing.

SEE ALSO
cxDirAddSubDir(3), cxDirRemoveFile(3), cxDirRemoveSubDir(3)