>>645
今ここで書いてみた。テストはしてないし、コンパイルもしてないけど、こんな感じ。


#define BUFSIZ 512 /* 行の大きさ以上 */
#define SKIP 3 /* この数の倍数行を出力しない */

int main(void) {
char buf[BUFSIZ];
int i = 1;

while (fgets(stdin, buf, sizeof(buf))) {
if (i % SKIP) {
fputs(stdout, buf);
}
}
return 0;
}