Debian Codegraph @

plugins/LadspaEffect/swh/gsm/gsm_create.c

raw
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
8 #include "config.h"
9
10 #ifdef HAS_STRING_H
11 #include <string.h>
12 #else
13 # include "proto.h"
14 extern char * memset P((char *, int, int));
15 #endif
16
17 #ifdef HAS_STDLIB_H
18 # include <stdlib.h>
19 #else
20 # ifdef HAS_MALLOC_H
21 # include <malloc.h>
22 # else
23 extern char * malloc();
24 # endif
25 #endif
26
27 #include <stdio.h>
28
29 #include "gsm.h"
30 #include "private.h"
31 #include "proto.h"
32
33 gsm gsm_create P0()
34 {
35 gsm r;
36
37 r = (gsm)malloc(sizeof(struct gsm_state));
38 if (!r) return r;
39
40 memset((char *)r, 0, sizeof(*r));
41 r->nrp = 40;
42
43 return r;
44 }