Skip to content

Console functions

Finalspace edited this page May 29, 2026 · 1 revision

This category contains function for handling console in/out. More...

Functions

Type Name
fpl_platform_api void fplConsoleError (const char *text)
Writes the given text to the standard error console buffer.
fpl_common_api void fplConsoleFormatError (const char *format,...)
Writes the given formatted text to the standard error console buffer.
fpl_common_api void fplConsoleFormatOut (const char *format,...)
Writes the given formatted text to the standard output console buffer.
fpl_platform_api void fplConsoleOut (const char *text)
Writes the given text to the standard output console buffer.
fpl_platform_api char fplConsoleWaitForCharInput (void)
Waits for a character to be typed in the console input and returns it.

Detailed Description

This category contains function for handling console in/out.

Function Documentation

fplConsoleError()

fpl_platform_api void fplConsoleError ( const char * text)

Writes the given text to the standard error console buffer.

Parameters

Direction Parameter Description
[in] text The text to write into the standard error console.

Note: This is most likely just a wrapper call to fprintf(stderr).

fplConsoleFormatError()

fpl_common_api void fplConsoleFormatError ( const char * format, ... )

Writes the given formatted text to the standard error console buffer.

Parameters

Direction Parameter Description
[in] format The format used for writing into the standard error console.
[in] ... The dynamic arguments used for formatting the text.

Note: This is most likely just a wrapper call to vfprintf(stderr).

fplConsoleFormatOut()

fpl_common_api void fplConsoleFormatOut ( const char * format, ... )

Writes the given formatted text to the standard output console buffer.

Parameters

Direction Parameter Description
[in] format The format used for writing into the standard output console.
[in] ... The dynamic arguments used for formatting the text.

Note: This is most likely just a wrapper call to vfprintf(stdout).

fplConsoleOut()

fpl_platform_api void fplConsoleOut ( const char * text)

Writes the given text to the standard output console buffer.

Parameters

Direction Parameter Description
[in] text The text to write into the standard output console.

Note: This is most likely just a wrapper call to fprintf(stdout).

fplConsoleWaitForCharInput()

fpl_platform_api char fplConsoleWaitForCharInput ( void )

Waits for a character to be typed in the console input and returns it.

Note: This is most likely just a wrapper call to getchar().

Returns: Returns the character typed in the console input.

Final Platform Layer

Pages

Topics

Data Structures

Clone this wiki locally