GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XmtCheckPrintfFormat(3) FreeBSD Library Functions Manual XmtCheckPrintfFormat(3)

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

#include <Xmt/Xmt.h>

Boolean XmtCheckPrintfFormat(String template, String msg)

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 compatible with template; False otherwise.

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 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''.

Chapter 25, Message Dialogs,
Chapter 3, Displaying Text,
XmtLocalize2().
Motif Tools Xmt

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.