SP_set_current_dir() #include <sicstus/sicstus.h>
spio_t_error_code
SP_set_current_dir(char const *dir);
Makes a directory pointed to by dir to become the current
working directory. path should be an encoded string.
On success, SPIO_S_NOERR or some other success code is returned.
On failure, an error code is returned and the working directory is not changed.
cpg-ref-SP_get_current_dir. OS File System.