ast_comparator/test/student_data/handout/shlab-handout/cases/reference_22_tsh.c
/*
 * Requires:
 *   "jobs" points to an array of MAXJOBS job structures.
 *
 * Effects:
 *   Returns the largest allocated job ID.
 */
"jobs" points to an array of MAXJOBS job structures.

Returns the largest allocated job ID.
" jobs " points to an array of MAXJOBS job structures . Returns the largest allocated job ID .
static int
maxjid(JobP jobs) 
{
	int i, max = 0;
	for (i = 0; i < MAXJOBS; i++)
		if (jobs[i].jid > max)
			max = jobs[i].jid;
	return (max);
}
static int maxjid ( JobP jobs ) { int i , max = 0 ; for ( i = 0 ; i < MAXJOBS ; i ++ ) if ( jobs [ i ] . jid > max ) max = jobs [ i ] . jid ; return ( max ) ; }
Requires:
   "jobs" points to an array of MAXJOBS job structures.
Requires : " jobs " points to an array of MAXJOBS job structures .