Asterisk - The Open Source Telephony Project
GIT-master-f36a736
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
}
gsm.h
gsm
struct gsm_state * gsm
Definition:
gsm.h:39
P
char *memset P((char *, int, int))
P0
gsm gsm_create P0()
Definition:
gsm_create.c:32
malloc
char * malloc()
config.h
Configuration File Parser.
proto.h
gsm_state
Definition:
codecs/gsm/inc/private.h:18
gsm_state::nrp
word nrp
Definition:
codecs/gsm/inc/private.h:31
Generated on Wed Dec 18 2024 20:04:15 for Asterisk - The Open Source Telephony Project by
1.9.4