]> git.cameronkatri.com Git - mandoc.git/blob - mdoclint.c
Adding mdoclint.1 manual.
[mandoc.git] / mdoclint.c
1 /* $Id: mdoclint.c,v 1.1 2009/02/23 13:05:06 kristaps Exp $ */
2 /*
3 * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the
7 * above copyright notice and this permission notice appear in all
8 * copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
18 */
19 #include <assert.h>
20 #include <err.h>
21 #include <getopt.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24
25 #include "mmain.h"
26
27 int
28 main(int argc, char *argv[])
29 {
30 struct mmain *p;
31 const struct mdoc *mdoc;
32
33 p = mmain_alloc();
34
35 if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))
36 mmain_exit(p, 1);
37
38 if (NULL == (mdoc = mmain_mdoc(p)))
39 mmain_exit(p, 1);
40
41 mmain_exit(p, 0);
42 /* NOTREACHED */
43 }
44