build: fix symlink selection
[sox.git] / libgsm / gsm_create.c
blobeb259dc7dcb868878b2297c5de0128f01f77a7f4
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 */
7 static char const ident[] = "$Header: /cvsroot/sox/sox/libgsm/gsm_create.c,v 1.1 2007/09/06 16:50:55 cbagwell Exp $";
9 #include <string.h>
10 #include <stdlib.h>
11 #include <stdio.h>
13 #include "gsm.h"
14 #include "private.h"
16 gsm gsm_create ()
18 gsm r;
20 r = (gsm)malloc(sizeof(struct gsm_state));
21 if (!r) return r;
23 memset((char *)r, 0, sizeof(*r));
24 r->nrp = 40;
26 return r;