MRMCLOSEHIERARCHY(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– MRMCLOSEHIERARCHY πŸ’–

okay bestie, welcome to the library call section of the manual, and today's main character is MrmCloseHierarchy β€” she closes a UID hierarchy, and honestly? she's the cleanup queen we all need. 🧹✨


✨ NAME ✨

MrmCloseHierarchy β€” closes a UID hierarchy πŸŽ€


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so, the MrmCloseHierarchy function does the reverse of opening β€” she closes a UID hierarchy that was previously opened by MrmOpenHierarchyPerDisplay. and no cap, she's thorough: all files associated with the hierarchy get closed by the Motif Resource Manager (MRM), and all associated memory is returned. giving full cleanup, zero leftovers, immaculate vibes. πŸ’…

  • hierarchy_id β€” specifies the ID of a previously opened UID hierarchy. this hierarchy_id was returned in a previous call to MrmOpenHierarchyPerDisplay. so like, you don't make it up yourself bestie, you get it handed to you. 🫢

πŸ”₯ RETURN πŸ”₯

she returns one of the following status return constants, and you're gonna want to actually check which one:

  • MrmSUCCESS β€” the function executed successfully. slay. πŸŽ‰
  • MrmBAD_HIERARCHY β€” the hierarchy ID was invalid. the vibe check failed. πŸ’€
  • MrmFAILURE β€” the function failed. 😭

MrmOpenHierarchyPerDisplay(3) β€” the one who opened it in the first place, iykyk.


and that's the whole page, bestie!! this was MrmCloseHierarchy, a library call straight from the Motif manual pages, and yes the footer literally just says her name again: MrmCloseHierarchy(library call). iconic behaviour, no notes. now go close that hierarchy and free that memory, you gorgeous legend πŸ‘‘πŸŒˆπŸ’–