add newline to end of file when encoding

This commit is contained in:
Eric 2025-05-27 00:27:25 +02:00
parent 623d0a5c3b
commit 6c7d699f1a

1
main.c
View file

@ -55,6 +55,7 @@ main(int argc, char *argv[])
encode(obuf, n, sbuf, url); encode(obuf, n, sbuf, url);
fprintf((argc == 2) ? out : stdout, "%s", sbuf); fprintf((argc == 2) ? out : stdout, "%s", sbuf);
} }
fprintf((argc == 2) ? out : stdout, "\n");
} }
if (in) if (in)
fclose(in); fclose(in);