diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-22 14:54:42 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-22 14:54:42 -0400 |
| commit | dfff353cf081024f9e145629dd51ef08526bb54d (patch) | |
| tree | 143ea3f1d33edf5d0527768fa9461750e417578a /snag/src/util.h | |
| parent | c293d3cc413991e4fb18b963427a6e55afd2b5c0 (diff) | |
basic download and hash with libcurl and libcrypto
Diffstat (limited to 'snag/src/util.h')
| -rw-r--r-- | snag/src/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/snag/src/util.h b/snag/src/util.h index eca4e4d..1a05ab0 100644 --- a/snag/src/util.h +++ b/snag/src/util.h @@ -20,9 +20,9 @@ void* _emalloc(int line, const char* file, size_t size, char* alloc_reason); #endif -// functions for outputting and displaying text -#define printout(fmt, ...) fprintf(stdout, fmt, ##__VA_ARGS__) -#define print(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) +// functions for outputting and displaying text, log is used for nonroutine bad things +void printout(const char* format, ...) __attribute__((format(printf, 1, 2))); +void print(const char* format, ...) __attribute__((format(printf, 1, 2))); // string functions #define vastrcat(...) vastrcat_(0, __VA_ARGS__, NULL) |
