version 1.1, 2000/09/11 21:13:51
|
version 1.2, 2000/09/11 21:30:16
|
Line 19 int caparesponse_capa_check_answer(char
|
Line 19 int caparesponse_capa_check_answer(char
|
u_getunit(fp); |
u_getunit(fp); |
fclose(fp); |
fclose(fp); |
|
|
p.ans_type = type; |
p.ans_type = type; |
p.answer = correct; |
p.answer = correct; |
p.tol_type = tol_type; |
p.tol_type = tol_type; |
p.tolerance = tolerance; |
p.tolerance = tolerance; |
p.sig_l = sig_lbound; |
p.sig_lbound = sig_lbound; |
p.sig_u = sig_ubound; |
p.sig_ubound = sig_ubound; |
p.fmt = strsave(ans_fmt); |
strncpy(p.ans_fmt,ans_fmt,ANSWER_STRING_LENG-1); |
p.unit_str = strsave(unit_str); |
strncpy(p.unit_str,unit_str,ANSWER_STRING_LENG-1); |
p.ans_unit = u_parse_unit(unit_str); |
p.ans_unit = u_parse_unit(unit_str); |
p.calc_type = calc; |
p.calc = calc; |
|
|
/* assign_id_list and assign_pts_list exist in capaGrammerDef.y */ |
/* assign_id_list and assign_pts_list exist in capaGrammerDef.y */ |
p.ans_id_list=NULL; |
p.id_list=NULL; |
p.ans_pts_list=NULL; |
p.pts_list=NULL; |
|
|
|
|
result=capa_check_answer(&p,response,&error); |
result=capa_check_answer(&p,response,&error); |