--- capa/capa51/pProj/capaCgiUtils.c 1999/12/03 18:39:38 1.7 +++ capa/capa51/pProj/capaCgiUtils.c 2000/01/25 17:14:29 1.10 @@ -425,6 +425,7 @@ void w_get_responses(int x,int q_idx,cha sa_p->a_idx = sub_idx; sa_p->a_str = strsave(g_entries[x].val); sa_p->a_next = NULL; + trim_response_ws(sa_p->a_str); if( g_stu_ans_pp[q_idx] == NULL ) { g_stu_ans_pp[q_idx] = sa_p; } else { @@ -1560,6 +1561,7 @@ char *class_dir; char *c_owner;char *cla } } +/*if the assignment is passedue we come here to get what the answer was just in case*/ void get_response(char pcr,char u_db,int q_idx,Problem_t *p) { @@ -1912,14 +1914,15 @@ int gather_answers(char ***ans,int q_idx return cnt; } +/*logging user's answer when it is passed due.*/ void log_user_ans(int q_idx,Problem_t *p) { char **ans; int cnt; if (p->ans_type==ANSWER_IS_SUBJECTIVE) { - capa_set_subjective(g_login_set,q_idx+1,g_student_number, - g_stu_ans_pp[q_idx+1]->a_str); + /*capa_set_subjective(g_login_set,q_idx+1,g_student_number, + g_stu_ans_pp[q_idx+1]->a_str);*/ } else { if (-1 != (cnt=gather_answers(&ans,q_idx,p))) { switch( capa_check_answers(p,ans,cnt) ) { @@ -2639,7 +2642,7 @@ FILE *out; capa_mfree((char *)capa_server); } -int +void get_tscore_width_height(width,height) int *width;int *height; {