repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
alsa.audio: limit the supported frequencies to common set
[AROS.git]
/
workbench
/
network
/
stacks
/
AROSTCP
/
netlib
/
vasprintf.c
blob
039668069de8716dc53f9abcc517fa185814a5f2
1
#include <stdio.h>
2
#include <stdlib.h>
3
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
);
11
}