This commit is contained in:
tTh
2023-03-24 15:32:13 +01:00
7 changed files with 41 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ if (NULL==(fpin=fopen(infname, "r"))) {
exit(1);
}
bublist = alloc_bubulles(infname, 150000, 0);
bublist = alloc_bubulles(infname, 800000, 0);
if (NULL==bublist) {
fprintf(stderr, "err in %s, aborting...\n", __func__);
abort();
@@ -100,8 +100,10 @@ nbre = 0;
while(NULL!=(cptr=fgets(line, LINE_SZ, fpin))) {
if ('\n' != line[strlen(line)-1]) {
fprintf(stderr, "%s: short read, exiting...\n", __func__);
return -2;
fprintf(stderr, "%s: short read on %s...\n",
__func__, infname);
// return -2;
break;
}
line[strlen(line)-1] = '\0'; /* kill the newline */
if (verbosity>1) fprintf(stderr, "line read ===%s===\n", line);

View File

@@ -20,8 +20,13 @@ if (2 != argc) {
verbosity = 1;
<<<<<<< HEAD
foo = try_to_read_an_OBJ_file(argv[1], "bulles.xyz", 0);
fprintf(stderr, "try to read '%s' --> %d\n", argv[1], foo);
=======
foo = try_to_read_an_OBJ_file(argv[1], "bubulles.asc", 0);
fprintf(stderr, "try to read -> %d\n", foo);
>>>>>>> 457afac7c0a208413ff6a7f1d0932da76ecf685b
return 0;
}