1/*	$NetBSD: utf8.h,v 1.5 2021/04/19 14:40:15 christos Exp $	*/
2/* $OpenBSD: utf8.h,v 1.4 2021/04/03 06:18:41 djm Exp $ */
3
4/*
5 * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20int	 vasnmprintf(char **, size_t, int *, const char *, va_list)
21	    __attribute__((format(printf, 4, 0)));
22int	 mprintf(const char *, ...)
23	    __attribute__((format(printf, 1, 2)));
24int	 fmprintf(FILE *, const char *, ...)
25	     __attribute__((format(printf, 2, 3)));
26int	 vfmprintf(FILE *, const char *, va_list)
27	     __attribute__((format(printf, 2, 0)));
28int	 snmprintf(char *, size_t, int *, const char *, ...)
29	    __attribute__((format(printf, 4, 5)));
30int	 asmprintf(char **, size_t, int *, const char *, ...)
31	    __attribute__((format(printf, 4, 5)));
32