XmuCvtStringToLong(Xmu) X Version 11 (Release 5) XmuCvtStringToLong(Xmu)
6 January 1993
Name
XmuCvtStringToLong - convert string to integer of type long
Syntax
cc . . . -lXmu
#include <X11/Xmu/Converters.h>
void XmuCvtStringToLong(args, num_args, fromVal, toVal)
XrmValuePtr args;
Cardinal *num_args;
XrmValuePtr fromVal;
XrmValuePtr toVal;
Arguments
args Argument ignored.
numargs This argument must be a pointer to a Cardinal containing 0.
fromVal Specifies the string to convert.
toVal Returns the converted value.
Description
The XmuCvtStringToLong function converts a string to an integer of type
long. The numargs argument must be zero. It parses the string using
sscanf with a format of "%ld". To use this converter, include the fol-
lowing in your widget's ClassInitialize procedure:
XtAddConverter(XtRString, XtRLong, XmuCvtStringToLong,
NULL, 0);
See also
XmuCvtFunctionToCallback(Xmu), XmuCvtStringToBackingStore(Xmu),
XmuCvtStringToColorCursor(Xmu), XmuCvtStringToCursor(Xmu),
XmuCvtStringToGravity(Xmu), XmuCvtStringToJustify(Xmu),
XmuCvtStringToOrientation(Xmu), XmuCvtStringToShapeStyle(Xmu),
XmuNewCvtStringToWidget(Xmu), XmuReshapeWidget(Xmu),
XmuCvtStringToWidget(Xmu)
Xlib - C Language X Interface