Files
ft_ping/src/utils.c
2025-08-15 18:11:48 +02:00

15 lines
269 B
C

#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;
}
}