icon name shortening and rudimentary directory visualization
[vrfileman] / src / assman_desktop.c
1 #include <stdio.h>
2 #include "assman.h"
3
4 ass_file *ass_fopen(const char *fname, const char *mode)
5 {
6         return (ass_file*)fopen(fname, mode);
7 }
8
9 void ass_fclose(ass_file *fp)
10 {
11         fclose((FILE*)fp);
12 }
13
14 long ass_fseek(ass_file *fp, long offs, int whence)
15 {
16         fseek((FILE*)fp, offs, whence);
17         return ftell((FILE*)fp);
18 }
19
20 long ass_ftell(ass_file *fp)
21 {
22         return ftell((FILE*)fp);
23 }
24
25 int ass_feof(ass_file *fp)
26 {
27         return feof((FILE*)fp);
28 }
29
30 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
31 {
32         return fread(buf, size, count, (FILE*)fp);
33 }
34
35 int ass_ungetc(int c, ass_file *fp)
36 {
37         return ungetc(c, (FILE*)fp);
38 }