3dphotoshoot
view src/pc/assman.c @ 27:3d082c566b53
fixed all the bugs, pc version works
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 18 Jun 2015 04:32:25 +0300 |
parents | |
children |
line source
1 #include <stdio.h>
2 #include "assman.h"
4 ass_file *ass_fopen(const char *fname, const char *mode)
5 {
6 return (ass_file*)fopen(fname, mode);
7 }
9 void ass_fclose(ass_file *fp)
10 {
11 fclose(fp);
12 }
14 long ass_fseek(ass_file *fp, long offs, int whence)
15 {
16 fseek(fp, offs, whence);
17 return ftell(fp);
18 }
20 long ass_ftell(ass_file *fp)
21 {
22 return ftell(fp);
23 }
25 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
26 {
27 return fread(buf, size, count, fp);
28 }