Files
fsnap/include/utility.h
Fabio Scotto di Santolo dcd17889ac Implement snapshot diff command
Add fsnap diff <old> <new> that compares two snapshots and reports
added (A), deleted (D), metadata changed (M), permissions changed (P),
and symlink target changed (L) records.

Both snapshots are loaded into memory, sorted by path using qsort,
and merged with a two-pointer algorithm. Residual records after the
merge are emitted as A or D. Escape sequences in paths are decoded
on output.

Also add GetTime accessor, set errno on load_in_memory failures
for meaningful error messages, and fix unused-variable warnings.
2026-08-25 18:13:29 +02:00

13 lines
211 B
C

#ifndef UTILITY_H
#define UTILITY_H
char *strconcat(const char *src, int n, ...);
char *resolve_path(const char *path);
int copy(const char *src, const char *dst);
int count_lines(const char *file);
#endif