DiamondLightSource / DiamondLightSource/ppmac_read_csv
Check Number of lines
- 主要言語
- C
- スター
- 2
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Check the number of lines in file to confront with the maximum defined of macro definition.
The following approach can be investigated further
```
int countLines(int *lineNum, char *filename)
{
char cmd[512];
sprintf(cmd,"wc -l < %s", filename);
FILE *pipe = popen(cmd,"r");
if(pipe == NULL) {
perror("popen failed");
return 1;
}
if(!(fscanf(pipe,"%d",lineNum))){
perror("fscanf failed");
pclose(pipe);
return 1;
}
pclose(pipe);
return 0;
}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、CSVの読み取りエントリーポイントと最大値を設定するマクロ定義を見つけ、次に提案されているcountLines関数とそのwc -lアプローチを調査します。ファイルの行数が定義された最大値と照合され、超過行の動作が検証できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c
- 領域
- embedded-iot
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100