CNTChangeDir

Syntax

#include <revolution/cnt.h>
BOOL CNTChangeDir(CNTHandle* handle, const char* dirName);

Arguments

handle Pointer to CNTHandle structure.
dirName Directory to be changed.

Return Values

Returns CNT_RESULT_OK when the process ends normally. Returns CNT_RESULT_INVALID if the specified path does not exist, or if the specified path is not a directory.

Description

This function changes the current directory of the CNTHandle structure. Any relative path specified with CNTOpen after this change is assumed to be a relative path from the new current directory of CNTHandle.

See Also

CNTOpen

Revision History

2006/12/04 Added result code descriptions.
2006/09/08 Initial version.


CONFIDENTIAL