Next: , Up: AutoGen Scheme Functions   [Contents][Index]


3.4.1 ag-fprintf - format to autogen stream

Usage: (ag-fprintf ag-diversion format [ format-arg ... ])
Format a string using arguments from the alist. Write to a specified AutoGen diversion. That may be either a specified suspended output stream (see out-suspend - suspend current output file) or an index into the output stack (see out-push-new - purge and create output file). (ag-fprintf 0 ...) is equivalent to (emit (sprintf ...)), and (ag-fprintf 1 ...) sends output to the most recently suspended output stream.

Arguments:
ag-diversion - AutoGen diversion name or number
format - formatting string
format-arg - Optional - list of arguments to formatting string