2 * Routines to report command-line argument errors.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "cmdarg_err.h"
15 static void (*print_err)(const char *, va_list ap);
16 static void (*print_err_cont)(const char *, va_list ap);
19 * Set the reporting functions for error messages.
22 cmdarg_err_init(void (*err)(const char *, va_list),
23 void (*err_cont)(const char *, va_list))
26 print_err_cont = err_cont;
30 * Report an error in command-line arguments.
33 cmdarg_err(const char *fmt, ...)
43 * Report additional information for an error in command-line arguments.
46 cmdarg_err_cont(const char *fmt, ...)
51 print_err_cont(fmt, ap);
56 * Editor modelines - http://www.wireshark.org/tools/modelines.html
61 * indent-tabs-mode: nil
64 * vi: set shiftwidth=4 tabstop=8 expandtab:
65 * :indentSize=4:tabSize=8:noTabs=true: