- Optimize
iwc -c
by getting the file size when we can
- Files are now properly closed.
- Words count fixed, it now matches
wc
’s.
- The read buffer is now 16k instead of 1k
- The newlines are now searched with
memchr
instead of manually looping on the buffer. - Improved words count
- Improved formatting
- Words & bytes counts
- Code split into two files (
cli.c
,iwc.c
) - Command-line options added
- Support for multiple input files (not only the standard input)
- Proper error handling
Initial release, as a proof-of-concept