Also read input
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
7c43d5243d
commit
bec5d91f70
1 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,9 @@ int main(int argc, char* argv[]){
|
||||||
for(size_t i = 0; i < argc; i++){
|
for(size_t i = 0; i < argc; i++){
|
||||||
fprintf(logfile, "\t%lu:%s\n",i, argv[i]);
|
fprintf(logfile, "\t%lu:%s\n",i, argv[i]);
|
||||||
}
|
}
|
||||||
|
char input[1024];
|
||||||
|
fread(input, sizeof(input), 1, stdin);
|
||||||
|
fprintf(logfile, input);
|
||||||
|
|
||||||
fclose(logfile);
|
fclose(logfile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue