2
* Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
3
* Universitaet Berlin. See the accompanying file "COPYRIGHT" for
4
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
7
/*$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm2cod.c,v 1.1 1994/10/21 20:52:11 jutta Exp $*/
23
fprintf(stderr, "Usage: %s [files...]\n", pname);
27
void process P2((f, filename), FILE * f, char * filename)
30
gsm_signal source[76];
36
(void)memset(source, 0, sizeof(source));
38
if (!(r = gsm_create())) {
43
gsm_option(r, GSM_OPT_VERBOSE, &verbosity);
45
cc = fread((char *)buf, sizeof(buf), 1, f);
53
"%s: %s -- trailing bytes ignored\n",
59
gsm_explode(r, buf, source);
60
if (write(1, (char *)source, sizeof(source))!= sizeof(source)) {
70
main P2((ac, av), int ac, char ** av)
78
if (!(pname = av[0])) pname = "gsm2cod";
83
if (!ac) process(stdin, "*stdin*");
84
else for (; *av; av++) {
85
if (!(f = fopen(*av, "r"))) perror(*av);