Mercurial > hg > audiostuff
comparison intercom/gsm/gsm_crea.c @ 2:13be24d74cd2
import intercom-0.4.1
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 09:57:52 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:9cadc470e3da | 2:13be24d74cd2 |
---|---|
1 /* | |
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. | |
5 */ | |
6 | |
7 #include "config.h" | |
8 | |
9 #ifdef HAS_STDLIB_H | |
10 #include <stdlib.h> | |
11 #include <string.h> | |
12 #else | |
13 # include "proto.h" | |
14 extern char *memset P((char *, int, int)); | |
15 #endif | |
16 #include <stdio.h> | |
17 | |
18 #include "private.h" | |
19 #include "gsm.h" | |
20 #include "proto.h" | |
21 | |
22 gsm gsm_create P0() | |
23 { | |
24 gsm r; | |
25 | |
26 #ifdef USE_TABLE_MUL | |
27 | |
28 static int mul_init = 0; | |
29 if (!mul_init) { | |
30 mul_init = 1; | |
31 init_umul_table(); | |
32 } | |
33 #endif | |
34 | |
35 r = (gsm) malloc(sizeof(struct gsm_state)); | |
36 if (!r) | |
37 return r; | |
38 | |
39 memset((char *) r, 0, sizeof(*r)); | |
40 r->nrp = 40; | |
41 | |
42 return r; | |
43 } |