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

πŸ’– XmStringConcat πŸ’–

okay bestie, gather round, because today we're talking about XmStringConcat β€” a compound string function from the Motif library call girlies. yes it's a <library call>, yes it's iconic, no we're not skipping a single detail. πŸŽ€


✨ NAME ✨

XmStringConcat β€” a compound string function that appends one string to another 🫢

like. it takes two strings. and it makes them one string. it's giving friendship bracelet energy fr fr. πŸ’…


✨ SYNOPSIS ✨

#include <Xm/Xm.h>
XmString XmStringConcat(
XmString s1,
XmString s2);

no cap, that's the whole vibe. two XmStrings walk in, one XmString walks out. πŸ”₯


✨ DESCRIPTION ✨

so here's the tea β˜•: XmStringConcat copies s2 to the end of s1 and returns a copy of the resulting compound string. the original strings are preserved β€” nobody gets deleted, nobody gets mutated, we're all about that healthy boundaries lifestyle. 🌸

the function will allocate space to hold the returned compound string. and listen, this is the important part, so imma say it louder:

⚠️ the application is responsible for managing the allocated space. this is your child now bestie, you gotta feed it. 😭

the application can recover the allocated space by calling XmStringFree. that's the cleanup era. that's the self-care. periodt. πŸ’…

the parameters, let's get into it:

  • s1 β€” specifies the compound string to which a copy of s2 is appended. this is the main character, the one who's getting a little something added on. πŸ‘‘
  • s2 β€” specifies the compound string that is appended to the end of s1. this is the plus-one, the guest star, the one showing up at the end of the movie. 🌈

lowkey that's it. that's the whole function. it's not deep, it's just consistent. and honestly? we respect that. 🧚


✨ RETURN ✨

returns a new compound string. fresh out the box. brand new. never worn. πŸŽ€βœ¨


go read these next, bestie, they're the friend group:

iykyk πŸ’œ


okay that's the whole page, and yes we're doing the little sign-off moment because the footer deserves its flowers too: this was XmStringConcat(library call) in the <library call> section, filed under the exact same title at the very top and the very bottom, like a little matching outfit. slay. πŸ’–πŸ¦‹πŸŒΈπŸ«Ά