home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
src
/
common
/
identify.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-07-29
|
661b
|
31 lines
#include "../h/gsupport.h"
#undef COMPILER
#define COMPILER 1 /* insure compiler Version number */
#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");
}