alsa.audio: limit the supported frequencies to common set
[AROS.git] / workbench / network / stacks / AROSTCP / netlib / vasprintf.c
blob039668069de8716dc53f9abcc517fa185814a5f2
1 #include <stdio.h>
2 #include <stdlib.h>
4 int vasprintf(char **ret, const char *format, va_list ap)
5 {
6 /* This can be done better, but i hope this is enough */
7 *ret = malloc(1024);
8 if (!*ret)
9 return -1;
10 return vsnprintf(*ret, 1023, format, ap);