1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include <stdint.h> // int16_t int32_t
22 #include <stdio.h> // FILE
24 void mysplitpath(const char* path
, char* drv
, char* dir
, char* name
, char* ext
);
26 size_t myfreadc (void *ptr
, size_t size
, size_t n
, FILE *f
);
28 void myfread (void *ptr
, size_t size
, size_t n
, FILE *f
);
29 int8_t myfread8 (FILE *f
);
30 int16_t myfread16 (FILE *f
);
31 int32_t myfread32 (FILE *f
);
33 void myfwrite (void *ptr
, size_t size
, size_t n
, FILE *f
);
34 void myfwrite8 (int8_t x
, FILE *f
);
35 void myfwrite16 (int16_t x
, FILE *f
);
36 void myfwrite32 (int32_t x
, FILE *f
);
38 int fexists (char *filename
);
40 #endif /* MY_H_INCLUDED */