-
Notifications
You must be signed in to change notification settings - Fork 1
/
misc.c
41 lines (38 loc) · 1.83 KB
/
misc.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* This file is a part of groinc
*
* Copyright (C) 2006-2008 Sarzyniec Luc <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* see the COPYING file for more informations */
#include "misc.h"
#include "globals_display.h"
#include "prints.h"
void print_misc(enum miscno no)
{
if (no == MISCNO_VERSION)
print_format(headerfd, "%s\nThis is free software; see the source or use --license for copying conditions.\n",SOFT_VERSION);
else if (no == MISCNO_LICENSE)
print_format(headerfd, "Groinc is Copyright 2006-2008 by Sarzyniec Luc <[email protected]>.\n\n"
"Groinc is free software, covered by the \"GNU General Public License version 3\", you are\n"
"welcome to change it and/or distribute copies of it under certain conditions.\n"
"There is absolutely no warranty for groinc.\n\n"
"See the source for copying conditions.\n"
"You can also get a copy of the \"GNU General Public License\" at this address :\n"
"http://www.gnu.org/copyleft/gpl.html\n");
else if (no == MISCNO_HELP)
print_format(headerfd, "usage : %s [-option] [-DSG ip addr] [-dsg port number] [-F regex] [-p protocolname]\n"
"\t[-l number] [-t time(seconds)]\n"
"Please take a look to the manual to get more informations.\n\n",SOFT_NAME);
}