aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authormegazig <megazig@megazig-desktop.(none)>2009-09-20 18:38:04 -0500
committermegazig <megazig@megazig-desktop.(none)>2009-09-20 18:38:04 -0500
commita3fc079c5cc9ad993fc6386a11b3ac80b8456f05 (patch)
treee578589a40a89780ab31a89e8b536e18ed3f265e /main.c
parentba2604687d1e7ec3f5dea9477fcbcc97e228174f (diff)
added xmlyt/xmlan check
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
index 59bfab9..244fc69 100644
--- a/main.c
+++ b/main.c
@@ -60,6 +60,16 @@ int main(int argc, char* argv[])
{
type = 2;
}
+ ext = temp;
+ if(strcmp(++ext, "xmlyt") == 0)
+ {
+ type = 1;
+ }
+ ext = temp;
+ if(strcmp(++ext, "xmlan") == 0)
+ {
+ type = 2;
+ }
if(type > 2)
{
printf("Unknown file extension\n");