This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
hilbert-os/euler/include/cstdio

16 lines
393 B
Text

#pragma once
#include <euler/stream.hpp>
#include <cstddef>
typedef euler::stream FILE;
extern "C" FILE *fopen(const char *filename, const char *mode);
extern "C" void fclose(FILE *stream);
#define SEEK_CUR 2
#define SEEK_END 1
#define SEEK_SET 0
extern "C" int fseek(FILE *stream, long offset, int origin);
extern "C" size_t fread(void *buffer, size_t size, size_t count, FILE *stream);