ast_comparator/test/student_data/handout/shlab-handout/cases/45_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)
{
    if (strncmp(argv[0], "quit", 4) == 0) {
        exit(0);
    }
    if (strncmp(argv[0], "bg", 2) == 0
        || strncmp(argv[0], "fg", 2) == 0) {
        do_bgfg(argv);
        return 1;
    }
    if (strncmp(argv[0], "jobs", 4) == 0) {
        listjobs(jobs);
        return 1;
    }
    if (strncmp(argv[0], "&", 1) == 0) {
        return 1;
    }
    return 0;     
}
int builtin_cmd ( char * * argv ) { if ( strncmp ( argv [ 0 ] , " " , 4 ) == 0 ) { exit ( 0 ) ; } if ( strncmp ( argv [ 0 ] , " " , 2 ) == 0 || strncmp ( argv [ 0 ] , " " , 2 ) == 0 ) { do_bgfg ( argv ) ; return 1 ; } if ( strncmp ( argv [ 0 ] , " " , 4 ) == 0 ) { listjobs ( jobs ) ; return 1 ; } if ( strncmp ( argv [ 0 ] , " " , 1 ) == 0 ) { 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 .
// ignore singleton & /* not a builtin command */