本文にスキップ
AI News HubLIVE
原典の内容 · 翻訳・分析待ち1 分で読了

翻訳待ち:I wrote my first C project after a long time. Unix wc clone. NO AI

記事の要約

AI サービスが一時的に利用できないため、復旧後に翻訳を補完します。ソース概要: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…

ソースHacker News AI著者: emanueleoggiano
翻訳待ち:I wrote my first C project after a long time. Unix wc clone. NO AI
誤りを報告

訂正窓口はまだ利用できません。記事情報をコピーして保存できます。

訂正案内
本文へ

AI サービスが一時的に利用できないため、復旧後に翻訳を補完します。

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

要点と分析を開く

記事インテリジェンス

エンジニア中級

要点

  • AI 生成が一時的に利用できないため、ソース内容とフォールバックメタデータを保存しました。
  • 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…

要点と分析は自動生成され、誤りを含む場合があります。原典をご確認ください。