added function readNfiles

This commit is contained in:
elvis
2022-04-09 22:43:26 +02:00
parent 029edc22fa
commit 98f3f0847c
4 changed files with 55 additions and 12 deletions

View File

@ -180,7 +180,9 @@ int parser(int len, char *command, queueT *queue, long fd_c, taglia_t* taglia, p
if(!token2)
goto _parser_cleanup;
readNFiles(token2, queue, fd_c, taglia);
int n = (int) strtol(token2, NULL, 10);
readNFiles(n, queue, fd_c, taglia);
goto _parser_end;
}