mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
21 lines
372 B
C++
21 lines
372 B
C++
float () main =
|
|
{
|
|
local float handle;
|
|
local string buffer;
|
|
|
|
handle = open ("builtins.c", 0);
|
|
if (handle == -1) {
|
|
print (strerror (errno ()) + "\n");
|
|
return 1;
|
|
}
|
|
do {
|
|
buffer = read (handle, 1024);
|
|
if (read_result == -1) {
|
|
print (strerror (errno ()) + "\n");
|
|
return 1;
|
|
}
|
|
print (buffer);
|
|
} while (read_result == 1024);
|
|
close (handle);
|
|
return 0;
|
|
};
|