Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > C Language Library Reference > Clib String Methods > Clib Write Formatted String MethodThe Clib Write Formatted String method writes output to a string variable according to a format that you define. It returns one of the following values:
You are not required to define the string value. It is large enough to hold the result. FormatClib.sprintf(stringVar, formatString, var1, var2, ..., varn) This method performs the same work and uses the same arguments as the Clib Formatted String method except it also includes the stringVar argument. This argument identifies the name of the variable where the Clib Write Formatted String method writes the formatted string. For more information, Clib Get Formatted String Method. ExampleThe following example uses the Clib Write Formatted String method with various format string arguments: TheApplication().TraceOn("c:\\eScript_trace.txt","allocation","all"); This example produces the following result: 02/18/04,18:37:35,START,7.5.3 [16157] LANG_INDEPENDENT,SADMIN,3964,3836 |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |