Clone of wc UNIX command tool written in C. Done as part of Monk Coding Challenge for CodingChallenges.FYI.
Parent repo: monk-coding-challenges
Challenge specification: Write Your Own wc Tool
Monk Coding Challenge 1: wc tool in C
- POSIX compliant operating system (any Linux will do)
- gcc
make
./mccwc test.txt
Usage: mccwc [OPTION] ... [FILE]
Print newline, word, and byte counts for FILE. A word is a non-zero-length sequence of printable characters delimited by white space.
-c print the byte count
-m print the character count
-l print the newline count
-w print the wird count
Without FILE, read standard input
This project is licensed under the MIT License.