Final Platform Layer 0.9.8-beta
Loading...
Searching...
No Matches
Functions
Console functions

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

Functions

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 ()
 Wait for a character to be typed in the console input and return 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
textThe text to write into 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
formatThe format used for writing into the standard error console
...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
formatThe format used for writing into the standard output console
...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
textThe text to write into standard output console.
Note
This is most likely just a wrapper call to fprintf(stdout)

◆ fplConsoleWaitForCharInput()

fpl_platform_api char fplConsoleWaitForCharInput ( )

Wait for a character to be typed in the console input and return it.

Note
This is most likely just a wrapper call to getchar()
Returns
Returns the character typed in in the console input