PL_recorded_external() is used to copy such recorded terms back to the Prolog stack.
The function PL_get_file_name() provides access to Prolog filenames and its file-search mechanism described with absolute_file_name/3. Its existence is motivated to realise a uniform interface to deal with file properties, search, naming conventions, etc., from foreign code.
- int PL_get_file_name(term_t spec, char **name, int flags)
- Translate a Prolog term into a file name. The name is stored in the
static buffer ring described with th PL_get_chars()
BUF_RING. Conversion from the internal UNICODE encoding is done using standard C library functions. flags is a bit-mask controlling the conversion process. Options are:
- Return an absolute path to the requested file.
- Return the name using the hosting OS conventions. On MS-Windows,
is used to separate directories rather than the canonical
- Invoke absolute_file_name/3. This implies rules from file_search_path/2 are used.
- Demand the p