ast_comparator/test/student_data/handout/shlab-handout/cases/53_tsh.c
/* delete_job_by_pid - Delete a job whose PID=pid from the job list 
 * Returns true if success, false if fails 
 */
Delete a job whose PID=pid from the job list
Returns true if success, false if fails
Delete a job whose PID = pid from the job list Returns true if success false if fails
bool delete_job_by_pid(struct job_t *jobs, pid_t pid)
{
	int i;
	if (pid < 1)
		return false;
	for (i = 0; i < MAXJOBS; i++)
	{
		if (jobs[i].pid == pid)
		{
			delete_job_by_job_t(jobs, &jobs[i]);
			return true;
		}
	}
	return false;
}
bool delete_job_by_pid ( struct job_t * jobs , pid_t pid ) { int i ; if ( pid < 1 ) return false ; for ( i = 0 ; i < MAXJOBS ; i ++ ) { if ( jobs [ i ] . pid == pid ) { delete_job_by_job_t ( jobs , & jobs [ i ] ) ; return true ; } } return false ; }
delete_job_by_pid - Delete a job whose PID=pid from the job list
 Returns true if success, false if fails
delete_job_by_pid - Delete a job whose PID = pid from the job list Returns true if success false if fails