gsm_create.c

Go to the documentation of this file.
00001 /*
00002  * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
00003  * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
00004  * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
00005  */
00006 
00007 #include "config.h"
00008 
00009 #ifdef   HAS_STRING_H
00010 #include <string.h>
00011 #else
00012 #  include "proto.h"
00013    extern char * memset P((char *, int, int));
00014 #endif
00015 
00016 #ifdef   HAS_STDLIB_H
00017 #  include  <stdlib.h>
00018 #else
00019 #  ifdef HAS_MALLOC_H
00020 #     include  <malloc.h>
00021 #  else
00022       extern char * malloc();
00023 #  endif
00024 #endif
00025 
00026 #include <stdio.h>
00027 
00028 #include "gsm.h"
00029 #include "private.h"
00030 #include "proto.h"
00031 
00032 gsm gsm_create P0()
00033 {
00034    gsm  r;
00035 
00036    r = (gsm)malloc(sizeof(struct gsm_state));
00037    if (!r) return r;
00038 
00039    memset((char *)r, 0, sizeof(*r));
00040    r->nrp = 40;
00041 
00042    return r;
00043 }

Generated on Thu Apr 16 06:27:36 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6