Files
Arquivotheca.SunOS-4.1.4/usr.etc/suninstall/lib/message.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

25 lines
551 B
C

/* @(#)message.c 1.1 94/10/31 SMI */
/*
* Copyright (c) 1988 by Sun Microsystems, Inc.
*/
#include "install.h"
/*VARARGS1*/
message(fmt, a1, a2, a3, a4, a5)
char *fmt;
int a1, a2, a3, a4, a5;
{
FILE *log;
(void) fprintf(stdout, fmt, a1, a2, a3, a4, a5);
if( (log = fopen(LOGFILE,"a")) == NULL ) {
(void) fprintf(stderr,"\nUnable to open %s.",LOGFILE);
aborting(1);
}
(void) fprintf(log, fmt, a1, a2, a3, a4, a5);
(void) fclose(log);
}