Asterisk - The Open Source Telephony Project
18.5.0
codecs
gsm
src
gsm_create.c
Go to the documentation of this file.
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_STRING_H
10
#include <string.h>
11
#else
12
# include "
proto.h
"
13
extern
char
* memset
P
((
char
*,
int
,
int
));
14
#endif
15
16
#ifdef HAS_STDLIB_H
17
# include <stdlib.h>
18
#else
19
# ifdef HAS_MALLOC_H
20
# include <malloc.h>
21
# else
22
extern
char
*
malloc
();
23
# endif
24
#endif
25
26
#include <stdio.h>
27
28
#include "
gsm.h
"
29
#include "private.h"
30
#include "
proto.h
"
31
32
gsm
gsm_create
P0
()
33
{
34
gsm
r;
35
36
r = (
gsm
)
malloc
(
sizeof
(
struct
gsm_state
));
37
if
(!r)
return
r;
38
39
memset((
char
*)r, 0,
sizeof
(*r));
40
r->nrp = 40;
41
42
return
r;
43
}
P0
gsm gsm_create P0()
Definition:
gsm_create.c:32
P
char *memset P((char *, int, int))
config.h
Configuration File Parser.
malloc
char * malloc()
gsm.h
proto.h
gsm
struct gsm_state * gsm
Definition:
gsm.h:39
gsm_state
Definition:
codecs/gsm/inc/private.h:18
Generated on Sun Aug 8 2021 19:43:47 for Asterisk - The Open Source Telephony Project by
1.8.13