Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmstringnconcat(3x) [osf1 man page]

XmStringNConcat(3X)													       XmStringNConcat(3X)

NAME
XmStringNConcat - A compound string function that appends a specified number of bytes to a compound string SYNOPSIS
#include <Xm/Xm.h> XmString XmStringNConcat (s1, s2, num_bytes) XmString s1; XmString s2; int num_bytes; DESCRIPTION
XmStringNConcat appends a specified number of bytes from s2 to the end of s1, including tags, directional indicators, and separators. It then returns the resulting compound string. The original strings are preserved. The space for the resulting compound string is allocated within the function. The application is responsible for managing the allocated space. The memory can be recovered by calling XmStringFree. Specifies the compound string to which a copy of s2 is appended. Specifies the compound string that is appended to the end of s1. Speci- fies the number of bytes of s2 to append to s1. If this value is less than the length of s2, as many bytes as possible, but possibly fewer than this value, will be appended to s1 such that the resulting string is still a valid compound string. RETURN VALUE
Returns a new compound string. SEE ALSO
XmStringCreate(3X), XmStringFree(3X) XmStringNConcat(3X)

Check Out this Related Man Page

XmStringTableToXmString(library call)									     XmStringTableToXmString(library call)

NAME
XmStringTableToXmString -- A convenience function that converts a compound string table to a single compound string SYNOPSIS
#include <Xm/Xm.h> XmString XmStringTableToXmString( XmStringTable table, Cardinal count, XmString break_component); DESCRIPTION
XmStringTableToXmString takes as input table of compound strings and a specified string component (such as a tab) and returns a single com- pound string consisting of each of the elements of table concatenated together with a single copy of break_component inserted between each element. table Specifies an XmStringTable containing the compound strings to be converted. count Specifies the number of compound strings in table. break_component Specifies the XmStringComponent that will be inserted in the result to separate the individual elements of table. The most useful types will be XmSTRING_COMPONENT_SEPARATOR and XmSTRING_COMPONENT_TAB. Refer to the XmStringComponentType(3) reference page for a complete list of possible component types. Note, however, that the XmSTRING_COMPONENT_UNKNOWN component is not a possible type. RETURN
Returns a new XmString. The function will allocate space to hold the returned compound string. When the application no longer needs the returned compound string, the application should call XmStringFree. RELATED
XmString(3), XmStringComponentType(3), and XmStringFree(3). XmStringTableToXmString(library call)
Man Page