1*19261079SEd Maste /* $OpenBSD: utf8.h,v 1.4 2021/04/03 06:18:41 djm Exp $ */ 2076ad2f8SDag-Erling Smørgrav /* 3076ad2f8SDag-Erling Smørgrav * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> 4076ad2f8SDag-Erling Smørgrav * 5076ad2f8SDag-Erling Smørgrav * Permission to use, copy, modify, and distribute this software for any 6076ad2f8SDag-Erling Smørgrav * purpose with or without fee is hereby granted, provided that the above 7076ad2f8SDag-Erling Smørgrav * copyright notice and this permission notice appear in all copies. 8076ad2f8SDag-Erling Smørgrav * 9076ad2f8SDag-Erling Smørgrav * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10076ad2f8SDag-Erling Smørgrav * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11076ad2f8SDag-Erling Smørgrav * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12076ad2f8SDag-Erling Smørgrav * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13076ad2f8SDag-Erling Smørgrav * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14076ad2f8SDag-Erling Smørgrav * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15076ad2f8SDag-Erling Smørgrav * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16076ad2f8SDag-Erling Smørgrav */ 17076ad2f8SDag-Erling Smørgrav 18*19261079SEd Maste int vasnmprintf(char **, size_t, int *, const char *, va_list); 19076ad2f8SDag-Erling Smørgrav int mprintf(const char *, ...) 20076ad2f8SDag-Erling Smørgrav __attribute__((format(printf, 1, 2))); 21076ad2f8SDag-Erling Smørgrav int fmprintf(FILE *, const char *, ...) 22076ad2f8SDag-Erling Smørgrav __attribute__((format(printf, 2, 3))); 23076ad2f8SDag-Erling Smørgrav int vfmprintf(FILE *, const char *, va_list); 24076ad2f8SDag-Erling Smørgrav int snmprintf(char *, size_t, int *, const char *, ...) 25076ad2f8SDag-Erling Smørgrav __attribute__((format(printf, 4, 5))); 26*19261079SEd Maste int asmprintf(char **, size_t, int *, const char *, ...) 27*19261079SEd Maste __attribute__((format(printf, 4, 5))); 28ca86bcf2SDag-Erling Smørgrav void msetlocale(void); 29