istereo2

annotate src/ios/assman.c @ 24:9d53a4938ce8

port to android mostly complete, ads not done, and needs some polishing
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Oct 2015 08:15:24 +0300
parents
children
rev   line source
nuclear@7 1 #include <stdio.h>
nuclear@7 2 #include "assman.h"
nuclear@7 3
nuclear@7 4 ass_file *ass_fopen(const char *fname, const char *mode)
nuclear@7 5 {
nuclear@7 6 return (ass_file*)fopen(fname, mode);
nuclear@7 7 }
nuclear@7 8
nuclear@7 9 void ass_fclose(ass_file *fp)
nuclear@7 10 {
nuclear@7 11 fclose((FILE*)fp);
nuclear@7 12 }
nuclear@7 13
nuclear@7 14 long ass_fseek(ass_file *fp, long offs, int whence)
nuclear@7 15 {
nuclear@7 16 fseek((FILE*)fp, offs, whence);
nuclear@7 17 return ftell((FILE*)fp);
nuclear@7 18 }
nuclear@7 19
nuclear@7 20 long ass_ftell(ass_file *fp)
nuclear@7 21 {
nuclear@7 22 return ftell((FILE*)fp);
nuclear@7 23 }
nuclear@7 24
nuclear@7 25 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
nuclear@7 26 {
nuclear@7 27 return fread(buf, size, count, (FILE*)fp);
nuclear@7 28 }