Skip to content
AI News HubLIVE
More
Source content · Analysis pending1 min read

I wrote my first C project after a long time. Unix wc clone. NO AI

Summary

Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 5 Commits 5 Com…

SourceHacker News AIAuthor: emanueleoggiano
I wrote my first C project after a long time. Unix wc clone. NO AI
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 5 Commits 5 Commits .gitignore .gitignore LICENSE LICENSE README.md README.md main.c main.c Repository files navigation This project is an implementation of the Unix command wc (Word Count) written in C. It was built to understand how to read from a file and how to use macros to handle errors Functionalities Word Counter: Count the words in a given file, avoiding white spaces and other ascii symbols; Row Counter: Count the rows in a given file, analyzing the \n character. Usage To compile the main.c file you must have gcc or any other C compiler. In the terminal you write: gcc -O2 main.c -o word_count and then: ./word_count example.txt Example Suppose the example.txt file contains the following: Hello, 123, World !! WordCount Clone in C The output of the program will be: The number of words is: 7 The number of rows is: 2 TO DO Flag detector: Right now the program does not take -l, -w etc as arguments Character counter: Count the characters in the file Specific separator counter: Right now the program does not check for user requested separators as ,, ., etc License This project has been released under the MIT License Contribution Feel free to contribute to the project MIT license Activity Stars 0 stars Watchers 0 watching Forks 0 forks Report repository

Key points and analysis

Article intelligence

EngineersIntermediate

Key points

  • AI generation is temporarily unavailable; this entry was preserved with deterministic fallback metadata.
  • Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit da…

Highlights and analysis are generated automatically and may contain errors. Check the original source.