diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-22 22:15:46 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-22 22:15:46 +0100 |
| commit | ccc018887c443bf06482632d41798ec914a1df53 (patch) | |
| tree | 67596d708e63d498e33e0af286c48dd8dd891335 /FICS/maxxes-utils.h | |
| parent | 3cdba75bb55c7310950523e2cd66bbcf1d6d5992 (diff) | |
Added fprintf_logerr() and defined mfprintf()
Diffstat (limited to 'FICS/maxxes-utils.h')
| -rw-r--r-- | FICS/maxxes-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FICS/maxxes-utils.h b/FICS/maxxes-utils.h index 2e2c723..75380e8 100644 --- a/FICS/maxxes-utils.h +++ b/FICS/maxxes-utils.h @@ -6,6 +6,8 @@ #include "common.h" +#define mfprintf(p_fp, ...) \ + fprintf_logerr(__FILE__, __LINE__, (p_fp), __VA_ARGS__) #define msnprintf(p_str, p_size, ...) \ snprintf_trunc_chk(__FILE__, __LINE__, (p_str), (p_size), __VA_ARGS__) #define mstrlcpy(p_dst, p_src, p_dstsize) \ @@ -14,6 +16,9 @@ strlcat_trunc_chk((p_dst), (p_src), (p_dstsize), __FILE__, __LINE__) __FICS_BEGIN_DECLS +void fprintf_logerr(const char *file, const long int line, + FILE *, const char *format, ...) PRINTFLIKE(4); + bool is_too_long(const int, const size_t); void snprintf_trunc_chk(const char *file, const long int line, |
