cxDirAddSubDir - Adds a subdirectory to a directory.
#include <comprex.h>
void cxDirAddSubDir(CxDirectory *dir, CxDirectory *subdir);
- dir
- The directory.
- subdir
- The subdirectory to add.
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().