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
14 #include <wsutil/cmdarg_err.h>
16 static void (*print_err)(const char *, va_list ap);
17 static void (*print_err_cont)(const char *, va_list ap);
20 * Set the reporting functions for error messages.
23 cmdarg_err_init(void (*err)(const char *, va_list),
24 void (*err_cont)(const char *, va_list))
27 print_err_cont = err_cont;
31 * Report an error in command-line arguments.
34 cmdarg_err(const char *fmt, ...)
44 * Report additional information for an error in command-line arguments.
47 cmdarg_err_cont(const char *fmt, ...)
52 print_err_cont(fmt, ap);
57 * Editor modelines - http://www.wireshark.org/tools/modelines.html
62 * indent-tabs-mode: nil
65 * vi: set shiftwidth=4 tabstop=8 expandtab:
66 * :indentSize=4:tabSize=8:noTabs=true: