mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-25 08:30:55 +00:00
c4bf86786e
- Extracted functions to //lib:test for writing tests - Extracted functions to lib/util.h if they are useful outside tests
14 lines
337 B
C
14 lines
337 B
C
#ifndef lib_util_h
|
|
#define lib_util_h
|
|
#include "lib/defs.h"
|
|
|
|
/* Print an error message and exit. */
|
|
void Fatalf(const char *msg, ...)
|
|
__attribute__((noreturn, format(printf, 1, 2)));
|
|
|
|
/* Return a basic description of the given error code, or NULL if the error code
|
|
is unknown. */
|
|
const char *ErrorDescription(ErrorCode err);
|
|
|
|
#endif
|