|
NAMEXmtCheckPrintfFormat() - verify that two strings have the same printf() substitutions.SYNOPSIS#include <Xmt/Xmt.h>
Boolean XmtCheckPrintfFormat(String template, String msg) ARGUMENTSINPUTS
RETURNS True if msg has printf() substitutions that are identical to or compatible with template; False otherwise. DESCRIPTIONXmtCheckPrintfFormat() 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 function lets you to check that it does not contain inappropriate substitutions.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 ALSOChapter 25, Message Dialogs,Chapter 3, Displaying Text, XmtLocalize2().
Visit the GSP FreeBSD Man Page Interface. |