diff options
Diffstat (limited to 'src/mrc.c')
-rw-r--r-- | src/mrc.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; + +} + |