---
name: "MrmCloseHierarchy"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/MrmCloseHierarchy"
---

# MrmCloseHierarchy(3)

Closes a UID hierarchy

## NAME

**MrmCloseHierarchy** — Closes a UID hierarchy

## SYNOPSIS

```
#include <Mrm/MrmPublic.h>
Cardinal MrmCloseHierarchy(
MrmHierarchy hierarchy_id);
```

## DESCRIPTION

The **MrmCloseHierarchy** function closes a UID hierarchy previously opened by **MrmOpenHierarchyPerDisplay**. All files associated with the hierarchy are closed by the Motif Resource Manager (MRM) and all associated memory is returned.

- *hierarchy\_id*

  Specifies the ID of a previously opened UID hierarchy. The *hierarchy\_id* was returned in a previous call to **MrmOpenHierarchyPerDisplay**.

## RETURN

This function returns one of the following status return constants:

- **MrmSUCCESS**

  The function executed successfully.

- **MrmBAD\_HIERARCHY**

  The hierarchy ID was invalid.

- **MrmFAILURE**

  The function failed.

## RELATED

[**MrmOpenHierarchyPerDisplay**(3)](/MrmOpenHierarchyPerDisplay/3.md).
