ast_comparator/test/student_data/handout/shlab-handout/cases/53_tsh.c
/* pid_to_jid - Map process ID to job ID */
Map process ID to job ID
Map process ID to job ID
int pid_to_jid(pid_t pid)
{
	int i;
	if (pid < 1)
		return 0;
	for (i = 0; i < MAXJOBS; i++)
		if (jobs[i].pid == pid)
		{
			return jobs[i].jid;
		}
	return 0;
}
int pid_to_jid ( pid_t pid ) { int i ; if ( pid < 1 ) return 0 ; for ( i = 0 ; i < MAXJOBS ; i ++ ) if ( jobs [ i ] . pid == pid ) { return jobs [ i ] . jid ; } return 0 ; }
pid_to_jid - Map process ID to job ID
pid_to_jid - Map process ID to job ID