1/* -*- buffer-read-only: t -*- vi: set ro: */ 2/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 3#line 1 4/* Formatted output to strings. 5 Copyright (C) 1999, 2002, 2006-2007, 2009-2010 Free Software Foundation, 6 Inc. 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 3, or (at your option) 11 any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License along 19 with this program; if not, write to the Free Software Foundation, 20 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 21 22#include <config.h> 23 24/* Specification. */ 25#ifdef IN_LIBASPRINTF 26# include "vasprintf.h" 27#else 28# include <stdio.h> 29#endif 30 31#include <stdarg.h> 32 33int 34asprintf (char **resultp, const char *format, ...) 35{ 36 va_list args; 37 int result; 38 39 va_start (args, format); 40 result = vasprintf (resultp, format, args); 41 va_end (args); 42 return result; 43} 44