On this Page

    _tracef

    Format and write a line of text and write to the trace file.

    Syntax

    _tracef(format[, p1[, p2 ...]])

    Parameters

    format is a template of the text to be written to the file. It is similar to a C format string where embedded %s, %d, and %f markers get replaced by parameters passed to _tracef. For a more complete description of the formatting, process see _printf.

    p1, p2, ... are the optional parameters to be substituted into the format string.

    Returned Value

    None

    Description

    The trace file must be enabled by specifying the –trace command line option. If script tracing is not enabled _tracef statements are ignored.

    Example

     _tracef("name=%s, city=%s", "Tony", "Paris");  // prints 'name=Tony, city=Paris'

    See Also

    fp.fprintf
    _logf
    _message
    _printf
    _sprintf