1335640Shselasky/*
2335640Shselasky * Copyright (c) 1994, 1995, 1996
3335640Shselasky *	The Regents of the University of California.  All rights reserved.
4335640Shselasky *
5335640Shselasky * Redistribution and use in source and binary forms, with or without
6335640Shselasky * modification, are permitted provided that the following conditions
7335640Shselasky * are met:
8335640Shselasky * 1. Redistributions of source code must retain the above copyright
9335640Shselasky *    notice, this list of conditions and the following disclaimer.
10335640Shselasky * 2. Redistributions in binary form must reproduce the above copyright
11335640Shselasky *    notice, this list of conditions and the following disclaimer in the
12335640Shselasky *    documentation and/or other materials provided with the distribution.
13335640Shselasky * 3. All advertising materials mentioning features or use of this software
14335640Shselasky *    must display the following acknowledgement:
15335640Shselasky *	This product includes software developed by the Computer Systems
16335640Shselasky *	Engineering Group at Lawrence Berkeley Laboratory.
17335640Shselasky * 4. Neither the name of the University nor of the Laboratory may be used
18335640Shselasky *    to endorse or promote products derived from this software without
19335640Shselasky *    specific prior written permission.
20335640Shselasky *
21335640Shselasky * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22335640Shselasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23335640Shselasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24335640Shselasky * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25335640Shselasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26335640Shselasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27335640Shselasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28335640Shselasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29335640Shselasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30335640Shselasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31335640Shselasky * SUCH DAMAGE.
32335640Shselasky */
33335640Shselasky
34335640Shselasky#ifndef fmtutils_h
35335640Shselasky#define	fmtutils_h
36335640Shselasky
37335640Shselasky#include "pcap/funcattrs.h"
38335640Shselasky
39335640Shselasky#ifdef __cplusplus
40335640Shselaskyextern "C" {
41335640Shselasky#endif
42335640Shselasky
43335640Shselaskyvoid	pcap_fmt_errmsg_for_errno(char *, size_t, int,
44335640Shselasky    PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5);
45335640Shselasky
46356341Scy#ifdef _WIN32
47356341Scyvoid	pcap_fmt_errmsg_for_win32_err(char *, size_t, DWORD,
48356341Scy    PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(4, 5);
49356341Scy#endif
50356341Scy
51335640Shselasky#ifdef __cplusplus
52335640Shselasky}
53335640Shselasky#endif
54335640Shselasky
55335640Shselasky#endif
56