Paraslash Audio Streaming | |
About News Download Documentation Development |
Functions for printing the version string. More...
Functions | |
const char * | version_single_line (const char *pfx) |
Get the version string for an executable. More... | |
const char * | version_text (const char *pfx) |
Get the full version text. More... | |
void | version_handle_flag (const char *pfx, bool flag) |
Print the version text and exit successfully. More... | |
Functions for printing the version string.
const char* version_single_line | ( | const char * | pfx | ) |
Get the version string for an executable.
pfx | The program name (without the leading "para_"). |
Referenced by version_text().
const char* version_text | ( | const char * | pfx | ) |
Get the full version text.
pfx | See version_single_line(). |
Like version_single_line(), this string is stored in a statically allocated buffer and must not be freed.
References version_single_line().
Referenced by version_handle_flag().
void version_handle_flag | ( | const char * | pfx, |
bool | flag | ||
) |
Print the version text and exit successfully.
pfx | See version_single_line(). |
flag | Whether –version was given. |
If flag is false, this function does nothing. Otherwise it prints the full version text as returned by version_text() and exits successfully.
References version_text().