remove getsxts for better function readb
Decoding input is read faster now. With this, all options have been tuned to a reasonable degree.
This commit is contained in:
parent
0a4a98390d
commit
d921c1d860
3 changed files with 18 additions and 13 deletions
2
main.c
2
main.c
|
@ -53,7 +53,7 @@ main(int argc, char *argv[])
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (dec) {
|
||||
while ((n = getsxts((in) ? in : stdin, sbuf))) {
|
||||
while ((n = readb((in) ? in : stdin, sbuf, SXTETBUF))) {
|
||||
n = decode(sbuf, n, obuf, url);
|
||||
fwrite(obuf, sizeof(*obuf), n, (out) ? out : stdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue