xref: /titanic_51/usr/src/cmd/mandoc/mandoc_aux.h (revision 260e9a87725c090ba5835b1f9f0b62fa2f96036f)
1*260e9a87SYuri Pankov /*	$Id: mandoc_aux.h,v 1.3 2014/12/01 04:05:32 schwarze Exp $ */
2*260e9a87SYuri Pankov /*
3*260e9a87SYuri Pankov  * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4*260e9a87SYuri Pankov  * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
5*260e9a87SYuri Pankov  *
6*260e9a87SYuri Pankov  * Permission to use, copy, modify, and distribute this software for any
7*260e9a87SYuri Pankov  * purpose with or without fee is hereby granted, provided that the above
8*260e9a87SYuri Pankov  * copyright notice and this permission notice appear in all copies.
9*260e9a87SYuri Pankov  *
10*260e9a87SYuri Pankov  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11*260e9a87SYuri Pankov  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12*260e9a87SYuri Pankov  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13*260e9a87SYuri Pankov  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14*260e9a87SYuri Pankov  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15*260e9a87SYuri Pankov  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16*260e9a87SYuri Pankov  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*260e9a87SYuri Pankov  */
18*260e9a87SYuri Pankov 
19*260e9a87SYuri Pankov __BEGIN_DECLS
20*260e9a87SYuri Pankov 
21*260e9a87SYuri Pankov int		  mandoc_asprintf(char **, const char *, ...);
22*260e9a87SYuri Pankov void		 *mandoc_calloc(size_t, size_t);
23*260e9a87SYuri Pankov void		 *mandoc_malloc(size_t);
24*260e9a87SYuri Pankov void		 *mandoc_realloc(void *, size_t);
25*260e9a87SYuri Pankov void		 *mandoc_reallocarray(void *, size_t, size_t);
26*260e9a87SYuri Pankov char		 *mandoc_strdup(const char *);
27*260e9a87SYuri Pankov char		 *mandoc_strndup(const char *, size_t);
28*260e9a87SYuri Pankov 
29*260e9a87SYuri Pankov __END_DECLS
30