Asterisk - The Open Source Telephony Project GIT-master-0bf3178
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
32gsm 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}
struct gsm_state * gsm
Definition: gsm.h:39
char *memset P((char *, int, int))
gsm gsm_create P0()
Definition: gsm_create.c:32
char * malloc()
Configuration File Parser.