Function

NumCosmoMathcfg_get_data_filename

Declaration [src]

gchar*
ncm_cfg_get_data_filename (
  const gchar* filename,
  gboolean must_exist
)

Description [src]

Looks for filename in the data path and returns the full path if found.

Parameters

filename

Type: const gchar*

Filename to search in the data path.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
must_exist

Type: gboolean

Raises an error if filename is not found.

Return value

Type: gchar*

Full path for filename.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.