---
name: "dpm_seterrbuf"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dpm_seterrbuf"
---

# dpm\_seterrbuf(3)

set receiving buffer for error messages

## NAME

dpm\_seterrbuf - set receiving buffer for error messages

## SYNOPSIS

**int dpm\_seterrbuf (char \****buffer***,** **int** *buflen***)**

## DESCRIPTION

**dpm\_seterrbuf** tells the Disk Pool Manager client API the address and the size of the buffer to be used for error messages. If this routine is not called or if *buffer* is NULL, the messages are printed on **stderr**.

## RETURN VALUE

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, **serrno** is set appropriately.

## ERRORS

- **ENOMEM**

  memory could not be allocated for the thread specific information.
