blob: be1bf53a35ba4076074bc25a9099f772364362bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <stdio.h>
int main()
{
char buffer[1024];
for (;;) {
size_t num = fread(buffer, 1, sizeof(buffer), stdin);
if (num <= 0)
break;
fwrite(buffer, num, 1, stdout);
fflush(stdout);
}
return 0;
}
|