time(&GUL_StartTime); /* Fetch present time */
GUL_EndTime=GUL_StartTime + PUC_Time; /* Add search time */
while(1){
while(!(GUC_A = lfc_sgetc())) /* If we haven't received anything, from the SIO port */
{
if(lfc_GetOut()) /* see if the tester has gotten impatient */
lf_Terminate(F10_Exit);
time(&GUL_PresentTime); /* See if time's up */
if(GUL_PresentTime > GUL_EndTime)
return(TIMEOUT); /* A-yep! */
}