Mercurial > mxe-octave
annotate src/physfs-test.c @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | 0ea7263be430 |
children | 8a6c466753e2 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1615
diff
changeset
|
1 /* This file is part of MXE. */ |
1615 | 2 /* See doc/index.html for further information. */ |
3 | |
4 /* modified from test/physfs_test.c */ | |
5 | |
6 #include "physfs.h" | |
7 #include <stdio.h> | |
8 #include <stdlib.h> | |
9 | |
10 int main(int argc, char *argv[]) | |
11 { | |
12 (void)argc; | |
13 (void)argv; | |
14 | |
15 PHYSFS_Version compiled; | |
16 PHYSFS_VERSION(&compiled); | |
17 | |
18 printf("Compiled against PhysicsFS version %d.%d.%d\n\n", | |
19 (int) compiled.major, (int) compiled.minor, (int) compiled.patch); | |
20 | |
21 const PHYSFS_ArchiveInfo **rc; | |
22 const PHYSFS_ArchiveInfo **i; | |
23 | |
24 rc = PHYSFS_supportedArchiveTypes(); | |
25 printf("Supported archive types:\n"); | |
26 if (*rc == NULL) | |
27 printf(" * Apparently, NONE!\n"); | |
28 else | |
29 { | |
30 for (i = rc; *i != NULL; i++) | |
31 { | |
32 printf(" * %s: %s\n Written by %s.\n %s\n", | |
33 (*i)->extension, (*i)->description, | |
34 (*i)->author, (*i)->url); | |
35 } /* for */ | |
36 } /* else */ | |
37 | |
38 return 0; | |
39 } |