cxDirAddSubDir(3)

NAME
cxDirAddSubDir - Adds a subdirectory to a directory.

SYNOPSIS
#include <comprex.h> void cxDirAddSubDir(CxDirectory *dir, CxDirectory *subdir);

PARAMETERS

dir The directory.

subdir
    The subdirectory to add.

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

RETURNS
Nothing.