-
Notifications
You must be signed in to change notification settings - Fork 0
/
montail.c
59 lines (56 loc) · 2 KB
/
montail.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <stdio.h>
#include "romcal.h"
void montail(struct Info *info)
{
/*----------------------------------------------------------------------*
*
* @(#)ROMCAL montail.c 6.1 02/12/06 17:23:53
*
* Copyright (C) 1993,1995,1999 Kenneth G. Bath
* Permission to use and modify this software and its
* documentation for any purpose other than its incorporation
* into a commercial product is hereby granted without fee.
*
* Permission to copy and distribute this software and its
* documentation only for non-commercial use is also granted
* without fee, provided, however, that the above copyright
* notice appear in all copies, that both that copyright
* notice and this permission notice appear in supporting
* documentation. The author makes no representations about
* the suitability of this software for any purpose. It is
* provided "as is" without express or implied warranty.
*
*-------------------- Software Unit Description -----------------------*
*
* This module prints out the fixed text which must be printed at
* the conclusion of each month for each I/O option.
*
*---------------------- Software Unit History -------------------------*
*
* 18Feb95 : created, kgb
*
*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*
* begin code *
*----------------------------------------------------------------------*/
if (info->io_option == TEXT_IO) {
printf("\f\n");
}
else if (info->io_option == PSGREY_IO) {
end_page();
}
else if (info->io_option == PSCOLOR_IO) {
end_page();
}
else if (info->io_option == HTML_IO) {
printf("</TABLE>\n");
printf("<A HREF=\"#Top\">Back to top</A>\n");
printf("<HR>\n");
}
else if (info->io_option == RTF_IO) {
printf("\\pard\n");
printf("\\ql \\li0\\ri0\\widctlpar\\aspalpha\\aspnum");
printf("\\faauto\\adjustright\\rin0\\lin0\\itap0 \n");
printf("{\\par \\page \\par }\n");
}
}