diag(STRING*);

Writes the given string to acklog.txt when -diag is set.

Example:

diag("\ntest"); // write "test" into a new line in acklog.txt.  

See also:

-diag, diag_var, diag_frame