From 0c2e3ae267bb28aeb984faa74f19e0b253e3a6da Mon Sep 17 00:00:00 2001 From: Vanshika Mohan Bongade <vb525@drexel.edu> Date: Tue, 21 Jan 2025 04:59:38 +0000 Subject: [PATCH] Upload New File --- WEEK-3/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 WEEK-3/README.md diff --git a/WEEK-3/README.md b/WEEK-3/README.md new file mode 100644 index 0000000..b233733 --- /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" + + -- GitLab