Files
fsnap/include/create.h
Fabio Scotto di Santolo c397728912 Unify error handling: output parameter, goto cleanup, errno preservation
- Replace global field variable with output parameter enum Fields *err
- Adopt single goto cleanup pattern across all functions
- Add errno preservation around cleanup in all modules
- Fix early return bug in create.c cleanup block
- Add ferror check in crc32() for silent read errors
- Document error contracts in all public headers
2026-08-26 14:20:00 +02:00

9 lines
188 B
C

#ifndef CREATE_H
#define CREATE_H
/* Create a snapshot of a directory tree.
Returns 0 on success, -1 on failure. */
int create(const char *directory, const char *output_file);
#endif