The wc-tool
repository is a collection of source files for a simple word counting utility written in C. It provides functionality to count words, lines, and characters in text files and can be used as an alternative to the Linux wc
command.
This project consists of the following source files:
bytes.c
andbytes.o
: Source and object files for counting bytes in text files.chars.c
andchars.o
: Source and object files for counting characters in text files.help.c
andhelp.o
: Source and object files for displaying help information.lines.c
andlines.o
: Source and object files for counting lines in text files.makefile
: Makefile for building thewc-tool
.mywc
: The compiled word counting utility.tool.h
: Header file containing function prototypes.version.c
andversion.o
: Source and object files for displaying the tool's version information.wc.c
andwc.o
: Source and object files for the main word counting logic.words.c
andwords.o
: Source and object files for counting words in text files.
Follow these instructions to get the wc-tool
up and running on your local machine.
Before you begin, ensure you have the following prerequisites installed:
- A C compiler (e.g., GCC)
- Make
git clone https://github.com/yourusername/wc-tool.git
cd wc-tool
make
./mywc [OPTIONS] FILE
git checkout -b feature/new-feature
git commit -m 'Add new feature'
git push origin feature/new-feature
If you have any questions or suggestions, feel free to reach out to me:
- Email: uyplayer@outlook.com
This repository is licensed under the MIT License.