15 lines
269 B
C
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;
|
|
}
|
|
}
|
|
|