OutputDebugString

3.0

  void OutputDebugString(lpszOutputString)    
  LPCSTR lpszOutputString; /* address of string to display */

The OutputDebugString function displays the specified character string on the debugging terminal if a debugger is running.

Parameters

lpszOutputString

Points to a null-terminated string to be displayed.

Return Value

This function does not return a value.

Comments

This function preserves all registers.

Example

The following example uses the OutputDebugString function to display information on the debugging terminal:

OutputDebugString("\n\rcalling ValidateCodeSegments");

ValidateCodeSegments();

OutputDebugString("\n\rdone");

See Also

DebugOutput