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

FreeBSD Manual Pages

  
 
  

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

NAME
     XmtCheckPrintfFormat()  -	verify	that  two strings have the same printf()
     substitutions.

SYNOPSIS
     #include <Xmt/Xmt.h>

     Boolean XmtCheckPrintfFormat(String template, String msg)

ARGUMENTS
     INPUTS

	  template
		 A string with printf()-style variable substitutions in it.

	  msg	 A string to check against template.

     RETURNS

	  True if msg has printf() substitutions that are identical to	or  com-
	  patible with template; False otherwise.

DESCRIPTION
     XmtCheckPrintfFormat()  verifies that the printf() substitutions in msg are
     compatible with the substitutions in template. This is useful, for example,
     with XmtLocalize2() which allows you to look up a translated  verion  of  a
     message.	If the translated message will be passed to printf(), this func-
     tion lets you to check that it does  not  contain	inappropriate  substitu-
     tions.

     XmtCheckPrintfFormat() supports regular printf() substitutions and also the
     internationalized style of printf() substitutions that are now supported on
     many  systems.  This new substitution syntax allows you to specify the type
     and the position of the argument to be substituted, and look like	``%2$d''
     or ``%1$s''.

SEE ALSO
     Chapter 25, Message Dialogs,
     Chapter 3, Displaying Text,
     XmtLocalize2().

Xmt				   Motif Tools		 XmtCheckPrintfFormat(3)

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

home | help