okutil_get_custom_path

 

Description

This function is to get current working directory.

Syntax

string okutil_get_custom_path( bool bDoUpdate = false )

Parameters

bDoUpdate
[input]if TRUE then update map for ORIGIN_PATH_CUSTOM, otherwise not.

Return

Current working directory.

Examples

EX1

void okutil_get_custom_path_Ex1()
{
    string str = okutil_get_custom_path();
    out_str(str);// print out current working directory.
}

EX2

void okutil_get_custom_path_Ex2()
{
    bool bDoUpdate=true;
    string str = okutil_get_custom_path(bDoUpdate);
    out_str(str);// print out current working directory.
}

Remark

See Also

okutil_set_custom_path

header to Included

origin.h

Reference