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

πŸ’– XmRepTypeGetNameList πŸ’–

okay bestie, so this is a library call from the representation type manager fam β€” yes, the XmRepTypeGetNameList one, the icon, the moment. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

XmRepTypeGetNameList β€” a representation type manager function that generates a list of values for a representation type. like, it literally makes you a whole list. slay.


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/RepType.h>
String * XmRepTypeGetNameList(
        XmRepTypeId rep_type_id,
        Boolean use_uppercase_format);

🌸 DESCRIPTION 🌸

So here's the vibe: XmRepTypeGetNameList generates a NULL-terminated list of the value names associated with the specified representation type. every single value name in that list is itself a NULL-terminated string, because of course it is, we're being thorough πŸ’…

⚠️ and now the important part, bestie, don't skip this: this routine allocates memory for the returned data. that memory is yours now. the application must free this memory using XtFree. not free, not delete, XtFree. periodt. if you forget, that's a leak and the vibe check fails 😭

the args 🫢

  • rep_type_id β€” specifies the identification number of the representation type. like, which rep type are we even talking about, girl. that's this.
  • use_uppercase_format β€” specifies a Boolean value that controls the format of the name list. if the value is True, each value name is in uppercase characters prefixed by Xm; if it is False, the names are in lowercase characters. two looks, both iconic, your call.

🌈 RETURN 🌈

Returns a pointer to an array of the value names. that's it, that's the tea ✨


go read those next, they're all in the same friend group πŸ¦‹


and that's the whole page, bestie!! this was XmRepTypeGetNameList from the library call section of the manual β€” the same name you'll see printed at the bottom of the page, right where the source and date live, looking all official and lowkey serving main character energy πŸ‘‘ go free your memory with XtFree and have the day you deserve πŸŽ€πŸ’–