00001
00002
00003
00004
00005
00006
00007 static char const ident[] = "$Header$";
00008
00009 #include "config.h"
00010
00011 #ifdef HAS_STRING_H
00012 #include <string.h>
00013 #else
00014 # include "proto.h"
00015 extern char * memset P((char *, int, int));
00016 #endif
00017
00018 #ifdef HAS_STDLIB_H
00019 # include <stdlib.h>
00020 #else
00021 # ifdef HAS_MALLOC_H
00022 # include <malloc.h>
00023 # else
00024 extern char * malloc();
00025 # endif
00026 #endif
00027
00028 #include <stdio.h>
00029
00030 #include "gsm.h"
00031 #include "private.h"
00032 #include "proto.h"
00033
00034 gsm gsm_create P0()
00035 {
00036 gsm r;
00037
00038 r = (gsm)malloc(sizeof(struct gsm_state));
00039 if (!r) return r;
00040
00041 memset((char *)r, 0, sizeof(*r));
00042 r->nrp = 40;
00043
00044 return r;
00045 }