[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.c
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 23 Dec 2004 18:36:42 -0000
albertel Thu Dec 23 13:36:42 2004 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.c
Log:
- I hate C
Index: loncom/homework/caparesponse/caparesponse.c
diff -u loncom/homework/caparesponse/caparesponse.c:1.15 loncom/homework/caparesponse/caparesponse.c:1.16
--- loncom/homework/caparesponse/caparesponse.c:1.15 Thu Dec 23 13:32:50 2004
+++ loncom/homework/caparesponse/caparesponse.c Thu Dec 23 13:36:42 2004
@@ -1,6 +1,6 @@
/* The LearningOnline Network with CAPA
* CAPA wrapper code
- * $Id: caparesponse.c,v 1.15 2004/12/23 18:32:50 albertel Exp $
+ * $Id: caparesponse.c,v 1.16 2004/12/23 18:36:42 albertel Exp $
*
* Copyright Michigan State University Board of Trustees
*
@@ -156,6 +156,7 @@
}
}
if( !all_alphabet ) {
+ tmp_unit_str[0]=NULL;
outcome = split_num_unit(answer,&n_part,input,tmp_unit_str);
if( outcome > 1 ) { /* with both num and unit parts or only unit part */
if( ans_unit != NULL ) {