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

πŸ’– XmStringLineCount πŸ’–

okay bestie, so this one is a library call from the <Xm/Xm.h> world β€” it's a compound string function, and it's literally just here to tell you how many lines of text are hiding in your compound string. no cap, that's the whole job. πŸŽ€


✨ NAME ✨

XmStringLineCount β€” a compound string function that returns the number of separators plus one in the provided compound string. it's giving "how many lines tho" energy πŸ¦‹


🌸 SYNOPSIS 🌸

#include <Xm/Xm.h>
int XmStringLineCount(
XmString string);

πŸ’… DESCRIPTION πŸ’…

so like. XmStringLineCount returns the number of separators plus one in the provided compound string. in effect β€” and this is the cute part β€” it counts the lines of text. that's it. that's the function. she's simple, she's iconic, she serves. ✨

  • string β€” specifies the string. that's the one thing you hand her. 🫢

πŸ‘‘ RETURN πŸ‘‘

returns the number of lines in the compound string. periodt. πŸ’–

  • if string is empty, the function returns 1.
  • if NULL is passed into string, the function returns 0 (zero).
ngl the empty-string-returns-1 thing is lowkey funny but it's real, bestie β€” empty string still counts as one line. NULL is the one that gets you 0. know the difference, iykyk πŸ’€


and that's the whole page, my love β€” XmStringLineCount, a library call, straight from the Motif/Xm docs. go forth and count your lines. main character energy only. 🧚✨