/* Read in a Siemens Krenikon MEG file and convert it into an EBS file. Copyright (C) 1993/94 M. Prosch, M. Kuhn, Institut fuer Physiologie und Biokybernetik (IPB), Universitaet Erlangen, Deutschland Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and related publications and that both that copyright notice and this permission notice appear in supporting documentation. The authors make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. Send your comments, suggestions or bug reports to ftpebs@uni-erlangen.de Or mail to Institut fuer Physiologie und Biokybernetik Markus Prosch Universitaetsstrasse 17 D-91054 Erlangen Germany $Id: kre2ebs.c,v 1.15 1994/12/16 15:41:19 aescheel Exp $ */ #include #include #include #include #include #include #include #include #include "ebs.h" #include "kre2ebs.h" #ifdef MSDOS #error This program is for Sun SPARC only #endif struct krehead header; /* for pre-ANSI-versions of stdio.h */ #ifndef SEEK_SET #define SEEK_SET 0 #endif #ifndef SEEK_END #define SEEK_END 2 #endif #define NO_SAMPLES 0xffffffff char copyright[]= "Read in a Siemens Krenikon MEG file and convert it into an EBS file.\n" "Copyright (C) 1993/94 M. Prosch, M. Kuhn, Institut fuer Physiologie und\n" " Biokybernetik (IPB), Universitaet Erlangen, Deutschland\n\n" "Permission to use, copy, modify, distribute, and sell this software\n" "and its documentation for any purpose is hereby granted without fee,\n" "provided that the above copyright notice appear in all copies and\n" "related publications and that both that copyright notice and this\n" "permission notice appear in supporting documentation. The authors make\n" "no representations about the suitability of this software for any\n" "purpose. It is provided \"as is\" without express or implied warranty.\n\n" "Send your comments, suggestions or bug reports to\n" " ftpebs@uni-erlangen.de\n\n" "Or mail to\n" " Institut fuer Physiologie und Biokybernetik\n" " Markus Prosch\n" " Universitaetsstrasse 17\n" " D-91054 Erlangen\n" " Germany\n\n"; char version[] = "Krenikon to EBS converter, V0.1 "__DATE__"\n" "(C) 1993/94 Markus Prosch, Markus Kuhn, IPB, Erlangen"; char version_short[] = "Krenikon to EBS converter, V0.1, M. Prosch, " "M. Kuhn, IPB"; char usage[] = "%s\n\nusage: %s [-v] [-e] [-ss | -st