/* Read in a Schwind Brain Star EEG file and convert it into an EBS file. Copyright (C) 1993/94 Markus 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: bs2ebs.c,v 1.25 1994/12/16 15:38:14 aescheel Exp $ */ #include #include #include #include #include #include #include #include "ebs.h" /* for pre-ANSI-versions of stdio.h */ #ifndef SEEK_SET #define SEEK_SET 0 #endif #ifndef SEEK_END #define SEEK_END 2 #endif #ifdef MSDOS #include "setstack.c" #endif #undef PI #define PI 3.14159265358979323846 #define NO_SAMPLES 0xffffffff char copyright[]= "Read in a Schwind Brain Star EEG file and convert it into an EBS file.\n" "Copyright (C) 1993/94 Markus 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[] = "Brain Star to EBS converter, V1.0\n(C) 1993/94 Markus Kuhn, IPB, Erlangen"; char version_short[] = "Brain Star to EBS converter, V1.0, Markus Kuhn, IPB"; char usage[] = "%s\n\nusage: %s [-vfrd] [-e | -st