This commit is contained in:
2025-08-11 11:31:52 -04:00
parent 0e6e155c15
commit a189c0ebc2
4 changed files with 126 additions and 71 deletions

19
core/util.c Normal file
View File

@@ -0,0 +1,19 @@
/* Copyright (C) vx_clutch
*
* This file is part of yait
*
* This project and file is licenced under the BSD-3-Clause licence.
* <https://opensource.org/licence/bsd-3-clause>
*/
#include "yait.h"
void emit_progress(const char *action, int count)
{
if (count > 0) {
fprintf(stderr, "%s %d", strcat("\r", action), count);
fflush(stderr);
} else {
fprintf(stderr, ", done\n");
}
}