FreeBSD/contrib/ntp/ntpd/refclock_arc.c
/*
Compute space left in output buffer.
*/
Compute space left in output buffer.
Compute space left in output buffer .
static int
space_left(
	register struct arcunit *up
	)
{
	int spaceleft;
	for(spaceleft = 0; spaceleft < CMDQUEUELEN; ++spaceleft)
	{ if(up->cmdqueue[CMDQUEUELEN - 1 - spaceleft] != '\0') { break; } }
	return(spaceleft);
}
static int space_left ( register struct arcunit * up ) { int spaceleft ; for ( spaceleft = 0 ; spaceleft < CMDQUEUELEN ; ++ spaceleft ) { if ( up -> cmdqueue [ CMDQUEUELEN - 1 - spaceleft ] != ' \0 ' ) { break ; } } return ( spaceleft ) ; }
Compute space left in output buffer.
Compute space left in output buffer .
/* Compute space left in buffer after any pending output. */