---
name: "RDLP_MemHandleNew"
section: "3"
platform: "linux"
package: "coldsync"
version: "3.0+pre3-3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/RDLP_MemHandleNew"
---

# RDLP\_MemHandleNew(3)

PalmOS memory-manipulation functions

## NAME

**RDLP\_MemHandleNew**, **RDLP\_MemMove**, **RDLP\_MemReadable** – PalmOS memory-manipulation functions

## LIBRARY

*libpconn*

## SYNOPSIS

**#include \<palm.h\>**

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

*int*\

**RDLP\_MemHandleNew**(*PConnection \*pconn*, *udword size*);

*int*\

**RDLP\_MemMove**(*PConnection \*pconn*, *ubyte \*dst*, *const udword src*, *const udword len*);

*int*\

**RDLP\_MemReadable**(*PConnection \*pconn*, *udword addr*);

## DESCRIPTION

Presumably, **RDLP\_MemHandleNew** allocates a new memory chunk of *size* bytes, and returns a pointer to it.

**RDLP\_MemMove** reads a region of memory, and returns it.

*dst* is a pointer to a buffer that will be filled in with the desired memory region.

*src* is the starting address of the region to read.

*len* specifies the length of the region to read.

Presumably **RDLP\_MemReadable** tests whether a given memory address exists and is readable.

## RETURN VALUE

These functions all return the contents of the Palm's D0 register after the function call, or a negative value in case of error.

## SEE ALSO

[libpconn(3)](/libpconn/3.md), [DlpRPC(3)](/DlpRPC/3.md).

## BUGS

**RDLP\_MemHandleNew** and **RDLP\_MemReadable** are untested.
