source: gaycko/trunk/src/io/file.h @ 4748

Last change on this file since 4748 was 4748, checked in by Jean-Yves Lamoureux, 9 years ago
  • Added copyright notices
File size: 707 bytes
Line 
1/*
2 *  Gaycko        Text mode web browser
3 *  Copyright (c) 2011 Jean-Yves Lamoureux <jylam@lnxscene.org>
4 *                All Rights Reserved
5 *
6 *  This library is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12#ifndef FILE_H
13#define FILE_H
14
15#include <stdio.h>
16
17
18struct gFile_ {
19        FILE *fp;
20    unsigned int  size;
21    char *data;
22
23};
24
25typedef struct gFile_ gFile;
26
27
28gFile *file_open(char* filename);
29void   file_close(gFile *f);
30
31#endif
Note: See TracBrowser for help on using the repository browser.