XMRENDERTABLECOPY(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

πŸ’– XmRenderTableCopy πŸ’–

okay bestie, gather round, because we're about to talk about XmRenderTableCopy β€” it's a render table function that copies renditions, and yes, it's from the library call girlies (that's the manual section, iykyk). ✨


🌸 NAME 🌸

XmRenderTableCopy β€” a render table function that copies renditions πŸ’…


✨ SYNOPSIS ✨

#include <Xm/Xm.h>
XmRenderTable XmRenderTableCopy(
XmRenderTable table,
XmStringTag *tags,
int tag_count);

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does she do? XmRenderTableCopy creates a brand new render table, and this new table will contain the renditions of the table whose tags match the ones in tags. It's giving "copy only the ones I asked for" energy. πŸŽ€

  • table β€” Specifies the table containing the renditions to be copied. Like, this is the source table, the origin story, the main character. πŸ‘‘
  • tags β€” Specifies an array of tags, whose corresponding renditions are to be copied. And here's the iconic part: NULL indicates that the complete table should be copied. Not me getting emotional over a NULL pointer default. 😭
  • tag_count β€” Specifies the number of tags in tags. Just the count, bestie, nothing more. πŸ”’

🫢 RETURN 🫢

Okay so here's the tea. She returns NULL if table is NULL. Otherwise, this function returns the new render table. πŸŽ‰

But listen β€” this function allocates space to hold the new render table, and the application is responsible for managing this allocated space. That's on you, not on her. No cap. πŸ™ˆ

The good news? The application can recover this allocated space by calling XmRenderTableFree. So like, you can clean up after yourself. Please do. πŸ’–

ngl the "you allocated it, you free it" pipeline is real and she will not be doing it for you. vibe check passed, but memory is YOURS to manage. πŸ’€


and that's the whole page, bestie β€” XmRenderTableCopy, library call, living her best life, slaying renditions one tag at a time βœ¨πŸ’…πŸŽ€

XmRenderTableCopy(library call) β€” that's the source/version-and-date sign-off situation, mwah, go forth and copy responsibly πŸ¦‹πŸŒΈπŸ’œ