version 1.7, 2000/02/09 22:10:24
|
version 1.9, 2000/02/22 18:19:02
|
Line 329 long offset;
|
Line 329 long offset;
|
/* entry->answers*3 == entry->tries, + fudge factor*/ |
/* entry->answers*3 == entry->tries, + fudge factor*/ |
a_line=capa_malloc(strlen(entry->tries)*5+MAX_STUDENT_NUMBER,1); |
a_line=capa_malloc(strlen(entry->tries)*5+MAX_STUDENT_NUMBER,1); |
sprintf(a_line,"%s %s,%s\n",entry->student_number,entry->answers,entry->tries); |
sprintf(a_line,"%s %s,%s\n",entry->student_number,entry->answers,entry->tries); |
printf("Setting:%s\n",a_line);/*TEST*/ |
|
new_len = strlen(a_line); |
new_len = strlen(a_line); |
sprintf(fmtbuf, "%%%dc",MAX_STUDENT_NUMBER); |
sprintf(fmtbuf, "%%%dc",MAX_STUDENT_NUMBER); |
flockstream(fp); /* <==== lock the setX.db file */ |
flockstream(fp); /* <==== lock the setX.db file */ |
Line 608 int set;
|
Line 607 int set;
|
} |
} |
ans_p[nq]='\0';tries_p[3*(nq)+2]='\0';tries_p[3*length-1]=','; |
ans_p[nq]='\0';tries_p[3*(nq)+2]='\0';tries_p[3*length-1]=','; |
} |
} |
printf("Got:%s:%s:\n",ans_p,tries_p);/*TEST*/ |
|
} |
} |
return (offset); |
return (offset); |
} |
} |
Line 3003 capa_check_ans(ai,ans) AnswerInfo_t *ai
|
Line 3001 capa_check_ans(ai,ans) AnswerInfo_t *ai
|
break; |
break; |
case ANSWER_IS_EXTERNAL: /* Not yet implemented */ |
case ANSWER_IS_EXTERNAL: /* Not yet implemented */ |
|
|
|
|
|
|
break; |
break; |
} |
} |
return (result); |
return (result); |