- The current filename.
Returns the filename for the file that is set as the current context. The pointer returned is only valid as long as no operations cause the filename of the image to change. Saving the file with a different name would cause this. It is suggested you duplicate the string if you wish to continue to use the string for later processing. Do not free the string pointer returned by this function.
Definition at line 1880 of file imlib2.c.
ctx = imlib_context_new();
CHECK_PARAM_POINTER_RETURN("imlib_image_get_filename", "image", ctx->image,
return (const char *)(im->file);