Diff for /capa/capa51/pProj/capaCommon.c between versions 1.6 and 1.8

version 1.6, 2000/02/04 21:29:20 version 1.8, 2000/02/22 18:13:20
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 3002  capa_check_ans(ai,ans) AnswerInfo_t  *ai Line 3000  capa_check_ans(ai,ans) AnswerInfo_t  *ai
           result = check_formula_ans(s,ans,ai->ans_id_list,ai->ans_pts_list,tt,to);            result = check_formula_ans(s,ans,ai->ans_id_list,ai->ans_pts_list,tt,to);
           break;            break;
     case ANSWER_IS_EXTERNAL: /* Not yet implemented */      case ANSWER_IS_EXTERNAL: /* Not yet implemented */
             
           break;            break;
   }    }
   return (result);    return (result);
Line 3158  capa_check_answer(p, answer) Problem_t * Line 3157  capa_check_answer(p, answer) Problem_t *
          /* we assume the external program is called through popen() */           /* we assume the external program is called through popen() */
          /* and the result will be given back as 0 or 1 to indicate the */           /* and the result will be given back as 0 or 1 to indicate the */
          /* given answer is correct or not */           /* given answer is correct or not */
                     /* arguments are given to the program as */
   
           break;            break;
           
   }    }

Removed from v.1.6  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>