aboutsummaryrefslogtreecommitdiff
path: root/src/mrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mrc.c')
-rw-r--r--src/mrc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mrc.c b/src/mrc.c
index f09c79e..b9b6efc 100644
--- a/src/mrc.c
+++ b/src/mrc.c
@@ -16,6 +16,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
+#include <string.h>
#include "mrc.h"
#include "control.h"
@@ -139,3 +140,14 @@ int mrc_read(ControlContext *ctx) {
return 0;
}
+
+unsigned int mrc_is_mrcfile(const char *filename) {
+
+ if ( strcmp(filename+(strlen(filename)-4), ".mrc") == 0 ) {
+ return 1;
+ }
+
+ return 0;
+
+}
+