~smlavine/navipage

ref: 3a07f5dba66becb7bba3e4db8d1ab7d73bc8ce7e navipage/err.h -rw-r--r-- 686 bytes
3a07f5dbSebastian LaVine Add Debugging section 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * err - Small error-printing library
 * Copyright (C) 2021 Sebastian LaVine <mail@smlavine.com>
 * SPDX-License-Identifier: MPL-2.0
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include <stdarg.h>

extern char *argv0;

/* These functions are declared in the order they are called by each other. */

void vwarn(const char *, va_list);
void vewarn(const char *, va_list);
void verr(const int, const char *, va_list);

void warn(const char *, ...);
void ewarn(const char *, ...);
void err(const int, const char *, ...);