home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
nisttime.carsoncity.k12.mi.us
/
nisttime.carsoncity.k12.mi.us.tar
/
nisttime.carsoncity.k12.mi.us
/
pub
/
lockclock
/
putmsg.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-18
|
435b
|
17 lines
void putmsg(msg)
char *msg;
{
/*
this subroutine is called if the lock program finds
a problem. it writes the text message contained in
msg. to the log file and returns. if this subroutine
was called by lockerr, then the program will stop.
The subroutine returns if the lock file won't open.
*/
#include <stdio.h>
FILE *lop,*fopen();
if( (lop=fopen("lock.err","a+")) == NULL) return;
fprintf(lop,"\n %s",msg);
fclose(lop);
}