12.3.29 SP_get_current_dir()

Synopsis

     #include <sicstus/sicstus.h>
     
     char *
     SP_get_current_dir(void);

Obtains an encoded string containing the absolute, slash (/) terminated, path to the current working directory. The return value is allocated with SP_malloc and should be freed with SP_free.

Return Value

The string on success and NULL on error.

See Also

cpg-ref-SP_set_current_dir. OS File System.


Send feedback on this subject.