← cproj

some stuff

bdbda8328d67eb6559144a9155c2c964aaff2375 · Ovidiu · Jul 18, 2019 14:50

+6 −1 · 1 file changed

  • mylib/test/t_hash.c +6 −1
diff --git a/mylib/test/t_hash.c b/mylib/test/t_hash.c
index 3123aef..1e09467 100644
--- a/mylib/test/t_hash.c
+++ b/mylib/test/t_hash.c
@@ -116,7 +116,12 @@ int main(int argc, char** argv){
 	if (argc != 2) {
 		fprintf(stderr,"Usage: %s <filename>\n", argv[0]);
 	} else {
-		readFile(fn);
+		char *fileRead = readFile(fn);
+		char *strings = strsep(&fileRead,":");
+		while (strings != NULL) {
+			fprintf(stderr, "%s", strings);
+			
+		}
 	}
 	#if 0
 	HashNode  *nodeResult = h_insert(tableResult, "400", "101");