hammer2 - Check duplicate H2 partitions during hammer2 cleanup
[dragonfly.git] / contrib / mdocml / mandoc_aux.h
blob04f4baff6065dcb170d04705fbb6683aecfca5dc
1 /* $Id: mandoc_aux.h,v 1.2 2014/04/23 21:06:41 schwarze Exp $ */
2 /*
3 * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4 * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #ifndef MANDOC_AUX_H
19 #define MANDOC_AUX_H
21 __BEGIN_DECLS
23 int mandoc_asprintf(char **, const char *, ...);
24 void *mandoc_calloc(size_t, size_t);
25 void *mandoc_malloc(size_t);
26 void *mandoc_realloc(void *, size_t);
27 void *mandoc_reallocarray(void *, size_t, size_t);
28 char *mandoc_strdup(const char *);
29 char *mandoc_strndup(const char *, size_t);
31 __END_DECLS
33 #endif /*!MANDOC_AUX_H*/