Function

NumCosmoMathutil_basename_fits

Declaration [src]

gchar*
ncm_util_basename_fits (
  const gchar* fits_filename
)

Description [src]

Extracts the extension .fits or .fit from fits_filename and returns the prefix. If the extension is not found a copy of fits_filename is returned.

Parameters

fits_filename

Type: const gchar*

A fits filename.

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

Return value

Type: gchar*

Prefix of fits_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.