Not needed
Showing
1 changed file
with
0 additions
and
46 deletions
lib/mu_asprintf.c
deleted
100644 → 0
1 | /* | ||
2 | This program is free software; you can redistribute it and/or modify | ||
3 | it under the terms of the GNU Library General Public License as published by | ||
4 | the Free Software Foundation; either version 2 of the License, or | ||
5 | (at your option) any later version. | ||
6 | |||
7 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU Library General Public License for more details. | ||
11 | |||
12 | You should have received a copy of the GNU Library General Public License | ||
13 | along with this program; if not, write to the Free Software | ||
14 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
15 | */ | ||
16 | |||
17 | #include "mu_asprintf.h" | ||
18 | #if !HAVE_DECL_VASPRINTF | ||
19 | extern int vasprintf __P((char **result, const char *format, va_list args)); | ||
20 | #endif | ||
21 | #if !HAVE_DECL_ASPRINTF | ||
22 | #if __STDC__ | ||
23 | extern int asprintf __P((char **result, const char *format, ...)); | ||
24 | #else | ||
25 | extern int asprintf (); | ||
26 | #endif | ||
27 | #endif | ||
28 | |||
29 | int | ||
30 | mu_vasprintf (char **result, const char *format, va_list * args) | ||
31 | { | ||
32 | return vasprintf (result, format, args); | ||
33 | } | ||
34 | |||
35 | extern int | ||
36 | mu_asprintf (char **result, const char *format, ...) | ||
37 | { | ||
38 | va_list args; | ||
39 | int done; | ||
40 | |||
41 | va_start (args, format); | ||
42 | done = vasprintf (result, format, args); | ||
43 | va_end (args); | ||
44 | |||
45 | return done; | ||
46 | } |
-
Please register or sign in to post a comment