summaryrefslogtreecommitdiffstats
path: root/src/smpeg-test.c
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-10-10 11:46:35 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-10-10 11:46:35 (GMT)
commit7c3b5bd675845eedec98d25bce99ad16fa1b3dd7 (patch)
treeeede680033ef664259a6bc0ae3ba62a0a2e15f9e /src/smpeg-test.c
parent542b153ca9b7a863985ae5fded7e87dd6f5d1368 (diff)
downloadmxe-7c3b5bd675845eedec98d25bce99ad16fa1b3dd7.zip
mxe-7c3b5bd675845eedec98d25bce99ad16fa1b3dd7.tar.gz
mxe-7c3b5bd675845eedec98d25bce99ad16fa1b3dd7.tar.bz2
add test program for package smpeg
Diffstat (limited to 'src/smpeg-test.c')
-rw-r--r--src/smpeg-test.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/smpeg-test.c b/src/smpeg-test.c
new file mode 100644
index 0000000..787b212
--- /dev/null
+++ b/src/smpeg-test.c
@@ -0,0 +1,18 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+#include <smpeg.h>
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ SMPEG_version v;
+
+ (void)argc;
+ (void)argv;
+
+ SMPEG_VERSION(&v);
+ printf("SMPEG version: %d.%d.%d\n", v.major, v.minor, v.patch);
+
+ return 0;
+}