diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-11 17:01:49 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-11 17:01:49 +0200 |
| commit | e6ff0ce6926fa921a13055c9c35d8e60b691e776 (patch) | |
| tree | 4af98713a2b43cbd229ca081d2dac877c8c36880 /tools/tool.h | |
| parent | dd6078288b5d7af4a4c0cdd1377a2976af569c9a (diff) | |
| download | nissy-core-e6ff0ce6926fa921a13055c9c35d8e60b691e776.tar.gz nissy-core-e6ff0ce6926fa921a13055c9c35d8e60b691e776.zip | |
Finished table refactor
Diffstat (limited to 'tools/tool.h')
| -rw-r--r-- | tools/tool.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/tool.h b/tools/tool.h index d75342d..7995621 100644 --- a/tools/tool.h +++ b/tools/tool.h | |||
| @@ -18,6 +18,16 @@ log_stderr(const char *str, ...) | |||
| 18 | va_end(args); | 18 | va_end(args); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | static void | ||
| 22 | write_stdout(const char *str, ...) | ||
| 23 | { | ||
| 24 | va_list args; | ||
| 25 | |||
| 26 | va_start(args, str); | ||
| 27 | vfprintf(stdout, str, args); | ||
| 28 | va_end(args); | ||
| 29 | } | ||
| 30 | |||
| 21 | static double | 31 | static double |
| 22 | timerun(void (*run)(void), char *name) | 32 | timerun(void (*run)(void), char *name) |
| 23 | { | 33 | { |
