blob: a9e4319b77ea263c5a5d29cc4cb8ffb89c23dd3b (
plain)
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
|
#include "../h/gsupport.h"
#include "../h/version.h"
extern char *progname;
/*
* id_comment - output a comment C identifying the date and time and what
* program is producing the output.
*/
void id_comment(f)
FILE *f;
{
static char sbuf[26];
static int first_time = 1;
time_t ct;
if (first_time) {
time(&ct);
strcpy(sbuf, ctime(&ct));
first_time = 0;
}
fprintf(f, "/*\n");
fprintf(f, " * %s", sbuf);
fprintf(f, " * This file was produced by\n");
fprintf(f, " * %s: %s\n", progname, Version);
fprintf(f, " */\n");
}
|