Skip to content
Snippets Groups Projects
Select Git revision
  • fb31ab82e6d8fbd643d229cd63cd960503856197
  • main default
2 results

WEEK-3

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.
    ./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"