diff --git a/WEEK-3/README.md b/WEEK-3/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b23373394c503650bba77d1898f6c93887a4c16a --- /dev/null +++ b/WEEK-3/README.md @@ -0,0 +1,24 @@ +# CS503 Week 3 Assignment: Text Line Processor in C + +## Overview +This project implements a simple **Text Line Processor** utility in C. The program allows users to perform various operations on input strings provided via the command line. It also includes an **extra credit** feature for word replacement. + +--- + +## Features +The utility supports the following operations: +1. **Help (`-h`)**: + Prints usage instructions. + ```bash + ./stringfun -h + +# Word Count (-c): Counts the number of words in the input string. + ./stringfun -c "This is a test" + +# Reverse String (-r): Reverses the input string in place. +./stringfun -r "This is a test" + +# Word Print (-w): Prints each word and its length. +./stringfun -w "This is a test" + +