DOKK / manpages / debian 12 / libmotif-dev / XmStringLineCount.3.en
XmStringLineCount(3) Library Functions Manual XmStringLineCount(3)

XmStringLineCount — A compound string function that returns the number of separators plus one in the provided compound string "XmStringLineCount" "compound string functions" "XmStringLineCount"

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

XmStringLineCount returns the number of separators plus one in the provided compound string. In effect, it counts the lines of text.

Specifies the string

Returns the number of lines in the compound string. If string is empty, the function returns 1. If NULL is passed into string, the function returns 0 (zero).

XmStringCreate(3).