XMSTRINGLINECOUNT(3)
π 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
stringis empty, the function returns1. - if
NULLis passed intostring, the function returns0(zero).
ngl the empty-string-returns-1thing is lowkey funny but it's real, bestie β empty string still counts as one line.NULLis the one that gets you0. know the difference, iykyk π
π RELATED π
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. π§β¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms