---
name: "lqr_vmap_list_foreach"
section: "3"
platform: "linux"
package: "liblqr-1-0-dev"
version: "0.4.1-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/lqr_vmap_list_foreach"
---

# lqr\_vmap\_list\_foreach(3)

perform operations on all LqrVMap objects in an LqrVMapList object

## NAME

lqr\_vmap\_list\_foreach - perform operations on all LqrVMap objects in an LqrVMapList object

## SYNOPSIS

```
#include <lqr.h>
```

**LqrRetVal lqr\_vmap\_list\_foreach(LqrVMapList\*** *list***, LqrVMapFunc** *func***, gpointer** *data***);**

## DESCRIPTION

The function **lqr\_vmap\_list\_foreach** can be used to apply the function *func* to all the LqrVMap objects listed in *list*. The parameter *data* is used to pass arguments to the function.

The *list* value should be obtained through the function [**lqr\_vmap\_list\_start**(3)](/lqr_vmap_list_start/3.md).

The function *func* is of type LqrVMapFunc, whose prototype is defined by:

```
typedef LqrRetVal (*LqrVMapFunc) (LqrVMap *vmap, gpointer data);
```

The *data* argument is of type gpointer, which is just a pointer to **void**.

## SEE ALSO

[**LqrRetVal**(3)](/LqrRetVal/3.md), [**lqr\_vmap\_list\_start**(3)](/lqr_vmap_list_start/3.md), [**lqr\_vmap\_list\_current**(3)](/lqr_vmap_list_current/3.md), [**lqr\_vmap\_list\_next**(3)](/lqr_vmap_list_next/3.md), [**lqr\_vmap\_internal\_dump**(3)](/lqr_vmap_internal_dump/3.md), [**lqr\_carver\_set\_dump\_vmaps**(3)](/lqr_carver_set_dump_vmaps/3.md)

## COPYRIGHT

Copyright © 2007-2009 Carlo Baldassi\
