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

XmStringCompare — A compound string function that compares two strings "XmStringCompare" "compound string functions" "XmStringCompare"

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

XmStringCompare returns a Boolean value indicating the results of a semantically equivalent comparison of two compound strings.

Semantically equivalent means that the strings have the same text components, font list element tags, directions, and separators. In general, if two compound strings are created with the same (char *) string using XmStringCreateLocalized in the same language environment, the compound strings compare as equal. If two compound strings are created with the same text and tag argument using XmStringCreate, the strings compare as equal.

Specifies a compound string to be compared with s2
Specifies a compound string to be compared with s1

Returns True if two compound strings are equivalent.

XmStringCreate(3) and XmStringCreateLocalized(3).