while ((dir = readdir(d)) != NULL) {
regmatch_t pmatch[2]; // To store the matched timestamp
if (regexec(®ex, dir->d_name, 2, pmatch, 0) == 0) {
// Extract the timestamp from the filename
char timestamp_str[256];
int len = pmatch[1].rm_eo - pmat...
Submitted by robert paulson - 4 months ago (Last modified 14 hours ago)