Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XmtErrorMsg(3)		    Library Functions Manual		  XmtErrorMsg(3)

NAME
     XmtErrorMsg(), XmtWarningMsg() - print an error message and exit or print a
     warning message and return.

SYNOPSIS
     #include <Xmt/Xmt.h>

     void XmtErrorMsg(String name, String type, String msg, ...)

     void XmtWarningMsg(String name, String type, String msg, ...)

ARGUMENTS
     INPUTS

	  name	 The  name  of	the procedure, widget, or module that is issuing
		 the error message.

	  type	 The type of the error message.

	  msg	 The default text  of  the  message.  The  message  may  contain
		 printf()-style  substitutions to be filled in from the argument
		 list.

	  ...	 A printf()-style variable-length argument list of values to  be
		 substituted into the msg argument.

DESCRIPTION
     XmtErrorMsg() and XmtWarningMsg() are simplified interfaces to XtErrorMsg()
     and  XtWarningMsg()  which take an printf()-style argument list rather than
     an awkward array of arguments.

     These functions prepend the name argument, a colon and a space to	the  msg
     argument.	Then  they convert the argument list into an array of arguments,
     and call XtErrorMsg() or XtWarningMsg() to display the message. They passes
     name and type as the name and type of  the  message.  XmtErrorMsg()  passes
     ``XmtError''  as the class of the message and XmtWarningMsg() passes ``Xmt-
     Warning'' as the message class. The message name, class, and  type  can  be
     used to provide translated versions of error and warning messages in a spe-
     cial Xt error database.

     Note  that  XmtErrorMsg()	causes	the  application to exit, while XmtWarn-
     ingMsg() prints a warning message and returns.

SEE ALSO
     Chapter 8, Utility Functions,
     XtErrorMsg(), XtWarningMsg().

Xmt				   Motif Tools			  XmtErrorMsg(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=XmtErrorMsg&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help