Skip to main content
Allocates a Windows console for the process when no console window exists. If a console window already exists, the call returns without doing anything. The function redirects stdout to console output and stdin to console input after allocation.

Syntax

Aliases

  • consolecreate

Example

Create the Windows console once before writing console output.