Method

VipsImagehistory_args

Declaration [src]

int
vips_image_history_args (
  VipsImage* image,
  const char* name,
  int argc,
  char** argv
)

Description [src]

Formats the name/argv as a single string and calls vips_image_history_printf(). A convenience function for command-line prorams.

See also: vips_image_get_history().

Parameters

name const char*
 

Program name.

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

Number of program arguments.

argv An array of utf8
 

Program arguments.

 The length of the array is specified in the argc argument.
 The data is owned by the caller of the function.
 Each element is a NUL terminated UTF-8 string.

Return value

Returns: int
 

0 on success, -1 on error.