🏗️」 wip: wtf is this

This commit is contained in:
2025-08-15 18:11:48 +02:00
parent f71753ffa8
commit 4c6fc1ecb1
11 changed files with 243 additions and 31 deletions

14
src/utils.c Normal file
View File

@ -0,0 +1,14 @@
#include <ping.h>
#include <unistd.h>
#include <stdlib.h>
void append_time(double time) {
if (times == NULL) {
times = malloc(sizeof(double));
times[0] = time;
} else {
times = reallocarray(times, rx_count, sizeof(double));
times[rx_count - 1] = time;
}
}