3dphotoshoot

annotate src/pc/assman.c @ 26:a460b1e5af4a

added GLUT frontend
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 03:55:05 +0300
parents
children
rev   line source
nuclear@26 1 #include <stdio.h>
nuclear@26 2 #include "assman.h"
nuclear@26 3
nuclear@26 4 ass_file *ass_fopen(const char *fname, const char *mode)
nuclear@26 5 {
nuclear@26 6 return (ass_file*)fopen(fname, mode);
nuclear@26 7 }
nuclear@26 8
nuclear@26 9 void ass_fclose(ass_file *fp)
nuclear@26 10 {
nuclear@26 11 fclose(fp);
nuclear@26 12 }
nuclear@26 13
nuclear@26 14 long ass_fseek(ass_file *fp, long offs, int whence)
nuclear@26 15 {
nuclear@26 16 fseek(fp, offs, whence);
nuclear@26 17 return ftell(fp);
nuclear@26 18 }
nuclear@26 19
nuclear@26 20 long ass_ftell(ass_file *fp)
nuclear@26 21 {
nuclear@26 22 return ftell(fp);
nuclear@26 23 }
nuclear@26 24
nuclear@26 25 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
nuclear@26 26 {
nuclear@26 27 return fread(buf, size, count, fp);
nuclear@26 28 }