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
/
putlock.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-18
|
721b
|
27 lines
#include <stdio.h>
#include "lock.h"
void putlock(lop,lock)
FILE **lop; /*file was opened in caller */
struct lockst *lock;
{
/*
this subroutine writes structure data from
structure to the stream file lop. The file
was opened by the caller via fopen
and lop is the file structure returned from that
fopen
*/
fprintf(*lop,L5FMT,lock->day);
fprintf(*lop,L5FMT,lock->fday);
fprintf(*lop," %2d",lock->mode);
fprintf(*lop," % .4le % .4le % .4le",lock->x,lock->y,
lock->d);
fprintf(*lop," %3d",lock->flags);
fprintf(*lop," %d",lock->waitn);
fprintf(*lop," %d",lock->waitx);
fprintf(*lop," % .4le",lock->errx);
fprintf(*lop," % .4le",lock->ybar);
fprintf(*lop," % .4le",lock->sumerr);
fprintf(*lop," \n");
}