Function

Vipsslist_fold2

Declaration [src]

void*
vips_slist_fold2 (
  GSList* list,
  void* start,
  VipsSListFold2Fn fn,
  void* a,
  void* b
)

Description [src]

Fold over a slist, applying fn to each element.

Parameters

list A list of guint8
 

A GSList

 The data is owned by the caller of the function.
start void*
 

Initial value for the accumulator.

 The argument can be NULL.
 The data is owned by the caller of the function.
fn VipsSListFold2Fn
 

Function to apply to each list element.

a void*
 

User data.

 The argument can be NULL.
 The data is owned by the caller of the function.
b void*
 

User data.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gpointer
 

NULL if fn returns NULL for all arguments, otherwise the first non-NULL value from fn.

 The data is owned by the called function.
 The return value can be NULL.