summaryrefslogtreecommitdiff
path: root/euler/include/cstdio
blob: 75472c1190350bb29a36d3f5bf9057652500d765 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <euler/stream.hpp>
#include <stddef.h>

namespace std {

  typedef euler::stream FILE;

  FILE *fopen(const char *filename, const char *mode);
  int fclose(FILE *stream);

  int fseek(FILE *stream, long offset, int origin);
  #define SEEK_SET 0
  #define SEEK_CUR 2
  #define SEEK_END 1

  size_t fread(void *buffer, size_t size, size_t count, FILE *stream);

}