ESO Recipe Execution Tool
3.13
|
Functions | |
int | er_strutils_termwidth (void) |
Determines the number of columns in the terminal. More... | |
int | er_strutils_termheight (void) |
Determines the number of rows in the terminal. More... | |
const char * | er_strutils_dblstr (double value) |
Fills a string with a double precision value. More... | |
Utility functions for handling strings.
const char* er_strutils_dblstr | ( | double | value | ) |
Fills a string with a double precision value.
value | A double precision number that is to be converted into a string. |
This function is used to generate a string-representation of a supplied double precision number, with the minimum amount of precision in order to be able to accurately reconstruct the original number. The string is stored locally as a static variable, and a pointer to it is returned. Thus, the function must not be called multiple times in a single operational element.
int er_strutils_termheight | ( | void | ) |
Determines the number of rows in the terminal.
This function determines the number of rows that are present in the terminal window at the time that it is called. If it is not possible to determine this, then a deafult of 24 lines is assumed.
int er_strutils_termwidth | ( | void | ) |
Determines the number of columns in the terminal.
This function determines the number of columns that are present in the terminal window at the time that it is called. If it is not possible to determine this, then a deafult of 80 characters is assumed.