3dphotoshoot

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/pc/assman.c	Thu Jun 18 03:55:05 2015 +0300
     1.3 @@ -0,0 +1,28 @@
     1.4 +#include <stdio.h>
     1.5 +#include "assman.h"
     1.6 +
     1.7 +ass_file *ass_fopen(const char *fname, const char *mode)
     1.8 +{
     1.9 +	return (ass_file*)fopen(fname, mode);
    1.10 +}
    1.11 +
    1.12 +void ass_fclose(ass_file *fp)
    1.13 +{
    1.14 +	fclose(fp);
    1.15 +}
    1.16 +
    1.17 +long ass_fseek(ass_file *fp, long offs, int whence)
    1.18 +{
    1.19 +	fseek(fp, offs, whence);
    1.20 +	return ftell(fp);
    1.21 +}
    1.22 +
    1.23 +long ass_ftell(ass_file *fp)
    1.24 +{
    1.25 +	return ftell(fp);
    1.26 +}
    1.27 +
    1.28 +size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
    1.29 +{
    1.30 +	return fread(buf, size, count, fp);
    1.31 +}