---
name: "wnmemb"
section: "3"
platform: "linux"
package: "libwn-dev"
version: "6.0-17"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/wnmemb"
---

# wnmemb(3)

operate on memory blocks

## NAME

wn\_memcpy, wn\_memset, wn\_memzero, wn\_memcmp, wn\_memeq - operate on memory blocks

## SYNOPSIS

```
#include <wn/wnmemb.h>

void wn_memcpy(ptr out,ptr in,int n)

void wn_memset(ptr out,char c,int n)

void wn_memzero(ptr out,int n)

int wn_memcmp(ptr m1,ptr m2,int len)

bool wn_memeq(ptr m1,ptr m2,int len)
```

## DESCRIPTION

Portable routines to operate on memory blocks.

**wn\_memcpy** copies *n* bytes of data from memory pointed to by *in* to memory pointed to by *out*.

**wn\_memset** sets *n* bytes pointed to by *out* to the value in *c*.

**wn\_memzero** sets *n* bytes pointed to by *out* to 0.

**wn\_memcmp** compares blocks of memory of length *len*.

**wn\_memeq** returns **TRUE** if *len* bytes pointed to by *m1* and *m2* are equal; **FALSE** otherwise.

## AUTHOR

Will Naylor
