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

✨ XmTextGetString ✨

okay bestie so this one is a library call from the Xm Text era, and it's literally the "gimme the string" button πŸ’– the whole function is just XmTextGetString, and she's here to hand you the string value of a Text widget. no cap.


🌸 NAME 🌸

XmTextGetString β€” a Text function that accesses the string value 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/Text.h>
char * XmTextGetString(
Widget widget);

πŸ’… DESCRIPTION πŸ’…

so XmTextGetString goes and accesses the string value of the Text widget. that's it, that's the job, and she ate πŸ’…

⚠️ okay but listen β€” the application is responsible for freeing the storage associated with the string by calling XtFree. like, you have to clean up after her. she is not going to do it for you. it's giving main character who leaves the dishes in the sink. don't be that app. free it. 😭
  • widget β€” specifies the Text widget ID ✨

and for a complete definition of Text and its associated resources, go look at XmText(3). iykyk πŸ“–


πŸ”₯ RETURN πŸ”₯

she returns a character pointer to the string value of the text widget, periodt.

  • this returned value is a copy of the value of the XmNvalue resource πŸ‘‘ (a copy, bestie, not a live wire β€” don't go thinking you're editing the widget through it)
  • she returns an empty string if the length of the Text widget's string is 0 (zero) πŸ“ like, zero chars, zero drama, just an empty string

go read those too, they're iconic ⭐


and that's the whole page, bestie πŸ¦‹ this was the XmTextGetString library call manual page, brought to you by the Xm Text widget corner of the universe, and yes she was born in the era of library calls and she's still slaying πŸ’– mwah, go free your strings 🌸