home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
nisttime.carsoncity.k12.mi.us
/
nisttime.carsoncity.k12.mi.us.tar
/
nisttime.carsoncity.k12.mi.us
/
pub
/
autolock
/
pushautolock.c
< prev
next >
Wrap
C/C++ Source or Header
|
2003-12-09
|
1KB
|
34 lines
#include <stdio.h>
#include "autolock.h"
void pushautolock(struct autolockst autolock[],int ib,int ie)
{
/*
this subroutine pushes down the autolock structure
so that autolock[ie-1] has what was formerly in autolock[ie-2],
etc. The operation runs backwards until index ib. This
subroutine is normally called with ib=0 and ie=the size
of the array autolock.
*/
int j;
for(j=ie-1; j>ib; j--)
{
autolock[j].day=autolock[j-1].day;
autolock[j].fday=autolock[j-1].fday;
autolock[j].mode=autolock[j-1].mode;
autolock[j].x=autolock[j-1].x;
autolock[j].rms=autolock[j-1].rms;
autolock[j].rms_avg=autolock[j-1].rms_avg;
autolock[j].nval=autolock[j-1].nval;
autolock[j].y=autolock[j-1].y;
autolock[j].d=autolock[j-1].d;
autolock[j].srv=autolock[j-1].srv;
autolock[j].flags=autolock[j-1].flags;
autolock[j].waitn=autolock[j-1].waitn;
autolock[j].waitx=autolock[j-1].waitx;
autolock[j].errx=autolock[j-1].errx;
autolock[j].ybar=autolock[j-1].ybar;
autolock[j].fcon=autolock[j-1].fcon;
autolock[j].sumerr=autolock[j-1].sumerr;
}
}