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:
-
Help (
-h
): Prints usage instructions../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"