source: bootcd/isolinux/syslinux-6.03/com32/cmenu/display.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/* -*- c -*- ------------------------------------------------------------- *
2 *
3 *   Copyright 2004-2006 Murali Krishnan Ganapathy - All Rights Reserved
4 *
5 *   This program is free software; you can redistribute it and/or modify
6 *   it under the terms of the GNU General Public License as published by
7 *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 *   Boston MA 02111-1307, USA; either version 2 of the License, or
9 *   (at your option) any later version; incorporated herein by reference.
10 *
11 * ----------------------------------------------------------------------- */
12
13#ifndef NULL
14#define NULL ((void *) 0)
15#endif
16
17#include "help.h"
18#include "com32io.h"
19#include "cmenu.h"
20#include "tui.h"
21#include <stdlib.h>
22#include <com32.h>
23#include <stdio.h>
24
25int main(int argc, char *argv[])
26{
27    if (argc < 2) {
28        csprint("Usage: display.c32 <textfile>\n", 0x07);
29        exit(1);
30    }
31
32    init_help(NULL);            // No base dir, so all filenames must be absolute
33    runhelp(argv[1]);
34    close_help();
35    return 0;
36}
Note: See TracBrowser for help on using the repository browser.