basic.%chdir C Function/BASIC Program

basic.%chdir

Command basic.%chdir C Function/BASIC Program
Applicable release versions: AP/Unix
Category BASIC Program (486)
Description changes the current directory to the directory specified by "string".

A "-1" (minus one) returned from this function indicates an error condition.
Syntax variable=%chdir(string)
Options
Example
if %chdir('/usr/pick') = -1 then crt 'errno=':system(0) 
If an error condition is encountered in this example, the error message is 
displayed from function "system(0)".
Purpose
Related basic.cfunc
basic.cfunction
tcl.cd