ast_comparator/test/student_data/handout/shlab-handout/cases/reference_10_tsh.c
/* 
 * builtin_cmd - If the user has typed a built-in command then execute
 *  it immediately.  
 */
If the user has typed a built-in command then execute
it immediately.
If the user has typed a built - in command then execute it immediately .
int builtin_cmd(char **argv) 
{
    char *quit = "quit";
    char *jobs_str = "jobs";
    char *bg_str = "bg";
    char *fg_str = "fg";
    if (0 == strcmp(argv[0], quit)) {
        exit(0);
    } else if (0 == strcmp(argv[0], jobs_str)) {
        listjobs(jobs);
        return 1;
    } else if (0 == strcmp(argv[0], bg_str) || 0 == strcmp(argv[0], fg_str)) {
        do_bgfg(argv);
        return 1;   
    }
     return 0;   
}
int builtin_cmd ( char * * argv ) { char * quit = " " ; char * jobs_str = " " ; char * bg_str = " " ; char * fg_str = " " ; if ( 0 == strcmp ( argv [ 0 ] , quit ) ) { exit ( 0 ) ; } else if ( 0 == strcmp ( argv [ 0 ] , jobs_str ) ) { listjobs ( jobs ) ; return 1 ; } else if ( 0 == strcmp ( argv [ 0 ] , bg_str ) || 0 == strcmp ( argv [ 0 ] , fg_str ) ) { do_bgfg ( argv ) ; return 1 ; } return 0 ; }
builtin_cmd - If the user has typed a built-in command then execute
  it immediately.
builtin_cmd - If the user has typed a built - in command then execute it immediately .
/* not a builtin command */