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


Manual Reference Pages  -  XMTCHECKPRINTFFORMAT (3)

NAME

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

CONTENTS

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 compatible 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 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 ALSO

Chapter 25, Message Dialogs,
Chapter 3, Displaying Text,
XmtLocalize2().
Search for    or go to Top of page |  Section 3 |  Main Index


Xmt XMTCHECKPRINTFFORMAT (3) Motif Tools

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