Print too many messages. More...
Functions | |
| int | fverbosef (FILE *stream, const char *format,...) |
| fprintf(3) when the verbose mode is enabled. More... | |
| int | snverbosef (char *str, size_t size, const char *format,...) |
| snprintf(3) when the verbose mode is enabled. More... | |
| int | sverbosef (char *str, const char *format,...) |
| sprintf(3) when the verbose mode is enabled. More... | |
| void | verbose_mode_disable (void) |
| Disable the verbose mode. More... | |
| void | verbose_mode_enable (void) |
| Enable the verbose mode. More... | |
| bool | verbose_mode_state (void) |
| Get the verbose mode state. More... | |
| int | verbosef (const char *format,...) |
| printf(3) when the verbose mode is enabled. More... | |
Print too many messages.
1.0.0The verbose mode status can be inspected using verbose_mode_state(). It can either be enabled or disabled using verbose_mode_enable() or verbose_mode_disable().
When the verbose mode is enabled, the following functions behave as their *printf(3) counterparts:
| verbose printing function | *printf(3) function |
|---|---|
| verbosef() | printf(3) |
| fverbosef() | fprintf(3) |
| sverbosef() | sprintf(3) |
| snverbosef() | snprintf(3) |
On the other hand, if the debugging mode is disabled, these functions do nothing except returning 0.
| int fverbosef | ( | FILE * | stream, |
| const char * | format, | ||
| ... | |||
| ) |
#include <include/noclock/verbose.h>
fprintf(3) when the verbose mode is enabled.
1.0.0| stream | The destination stream. |
| format | The format string. |
| 0 | if the verbose mode is disabled. |
| int snverbosef | ( | char * | str, |
| size_t | size, | ||
| const char * | format, | ||
| ... | |||
| ) |
#include <include/noclock/verbose.h>
snprintf(3) when the verbose mode is enabled.
1.0.0| str | The destination string. |
| size | The maximum number of characters to write. |
| format | The format string. |
| 0 | if the verbose mode is disabled. |
| int sverbosef | ( | char * | str, |
| const char * | format, | ||
| ... | |||
| ) |
#include <include/noclock/verbose.h>
sprintf(3) when the verbose mode is enabled.
1.0.0| str | The destination string. |
| format | The format string. |
| 0 | if the verbose mode is disabled. |
| void verbose_mode_disable | ( | void | ) |
#include <include/noclock/verbose.h>
Disable the verbose mode.
1.0.0 | void verbose_mode_enable | ( | void | ) |
#include <include/noclock/verbose.h>
Enable the verbose mode.
1.0.0 | bool verbose_mode_state | ( | void | ) |
#include <include/noclock/verbose.h>
Get the verbose mode state.
1.0.0| true | if the verbose mode is enabled. |
| false | otherwise. |
| int verbosef | ( | const char * | format, |
| ... | |||
| ) |
#include <include/noclock/verbose.h>
printf(3) when the verbose mode is enabled.
1.0.0| format | The format string. |
| 0 | if the verbose mode is disabled. |