Files
wehub-resource-sync f30f816e96
build-deb / build (push) Has been cancelled
build / build (5.2.0+ox, ubuntu_x64_8_cores, 231c88c2e564fdca40e15e750aacad5fb0887435) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:29:01 +08:00

20 lines
366 B
C++
Executable File

///usr/bin/env -S clang++ "$0" -o /tmp/demo && exec /tmp/demo "$@"
#include <fstream>
using namespace std;
int main()
{
ifstream r;
ofstream w;
r.open("/dev/zero", ios::binary);
w.open("/dev/null", ios::binary);
char buf[4096] = {0};
for (;;)
{
r.read(buf, sizeof(buf));
w.write(buf, sizeof(buf));
}
return 0;
}