summaryrefslogtreecommitdiff
path: root/euler/include/cstdio
blob: 0dc42d051d63b7e45d917aed8e3a3be1320d8ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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);