Skip to content

Conversation

@MasatoraAtarashi
Copy link

@MasatoraAtarashi MasatoraAtarashi commented Mar 6, 2021

@dooooooooinggggg
お疲れ様です。新人課題をやってみたのでお手すきの際にレビュー頂けますと幸いです:pray:

実装したこと

  • catの基本機能
    • 引数で指定したファイルの中身を出力
    • 引数がない場合は標準入力から読み込んで出力
    • 引数がハイフンだけだった場合は標準入力から読み込んで出力
    • オプションだけ指定した場合は標準入力から読み込んで出力
  • オプション
    • -nオプションのみ対応しました
  • エラー処理
    • read権限がないファイルを指定するとcat: sample.txt: Permission denied
    • ディレクトリを指定するとcat: ..: Is a directory
    • 存在しないファイルを指定するとcat: sample: No such file or directory
    • 不正なオプションを指定するとillegal option -- f

return 0;
}

#define BUFSIZE 1000
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

適当です涙

@MasatoraAtarashi MasatoraAtarashi marked this pull request as ready for review March 6, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant