Skip to content

shellmonk/mccwc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCCWC - Monk Coding Challenge 1: wc tool in C

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

Blog Post

Monk Coding Challenge 1: wc tool in C

Prerequisites

  • POSIX compliant operating system (any Linux will do)
  • gcc

Build and run

make
./mccwc test.txt

Usage

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

License

This project is licensed under the MIT License.

About

Implementation of wc tool in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published