Mercurial > molko
comparison libmlk-util/mlk/util/util.h @ 557:944798a59b8a
util: introduce mlk_util_die
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 08 Mar 2023 13:17:38 +0100 |
parents | 3663e92842dc |
children | a2443afe8a1f |
comparison
equal
deleted
inserted
replaced
556:7eebac09fcb7 | 557:944798a59b8a |
---|---|
84 #if defined(__cplusplus) | 84 #if defined(__cplusplus) |
85 extern "C" { | 85 extern "C" { |
86 #endif | 86 #endif |
87 | 87 |
88 /** | 88 /** |
89 * Print a fatal message and exit with code 1. | |
90 * | |
91 * \pre fmt != NULL | |
92 * \param fmt the printf format string | |
93 */ | |
94 void | |
95 mlk_util_die(const char *fmt, ...); | |
96 | |
97 /** | |
89 * Compatibility version of OpenBSD [strlcpy]. | 98 * Compatibility version of OpenBSD [strlcpy]. |
90 * | 99 * |
91 * [strlcpy]: http://man.openbsd.org/strlcpy | 100 * [strlcpy]: http://man.openbsd.org/strlcpy |
92 */ | 101 */ |
93 size_t | 102 size_t |