---
name: "im_mmapinrw"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_mmapinrw"
---

# im\_mmapinrw(3)

memory maps a VASARI image file with read and write access

## NAME

im\_mmapinrw - memory maps a VASARI image file  with read and write access

## SYNOPSIS

**#include \<vips/vips.h\>**

**IMAGE \*im\_mmapinrw(file\_name)**\
 **char \*file\_name;**

## DESCRIPTION

**[im\_mmapinrw(3)](/im_mmapinrw/3.md)** works exactly as im\_mmapin but the entered file\_name is memory mapped with read and write permissions.  This is useful for some applications, like writing lines onto an existing file.  Since  the user might change accidentally the context of the original file, great care should taken when handling a file with this routine.

[im\_open(3)](/im_open/3.md) is generally more convenient.

## RETURN VALUE

The function returns the image descriptor on success and NULL on error.

## SEE ALSO

[im\_close(3)](/im_close/3.md), [im\_open(3)](/im_open/3.md), [im\_makerw(3)](/im_makerw/3.md).

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 11/04/1990
