---
name: "dmmp_last_error_msg"
section: "3"
platform: "linux"
package: "multipath-tools"
version: "0.15.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dmmp_last_error_msg"
---

# dmmp\_last\_error\_msg(3)

Retrieves the last error message.

## NAME

dmmp\_last\_error\_msg - Retrieves the last error message.

## SYNOPSIS

**const char \* dmmp\_last\_error\_msg** **(struct dmmp\_context \****ctx***);**

## ARGUMENTS

- ctx

  Pointer of 'struct dmmp\_context'. If this pointer is NULL, your program will be terminated by assert.

## DESCRIPTION

Retrieves the last error message.

## RETURN

const char \*. No need to free this memory, the resources will get freed when **dmmp\_context\_free**.
