asnprintf.c

00001 /* Formatted output to strings.
00002    Copyright (C) 1999, 2002 Free Software Foundation, Inc.
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU Lesser General Public License as published by
00006    the Free Software Foundation; either version 2.1, or (at your option)
00007    any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public License along
00015    with this program; if not, write to the Free Software Foundation,
00016    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
00017 
00018 #ifdef HAVE_CONFIG_H
00019 # include <config.h>
00020 #endif
00021 
00022 /* Specification.  */
00023 #include "vasnprintf.h"
00024 
00025 #include <stdarg.h>
00026 
00027 char *
00028 asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
00029 {
00030   va_list args;
00031   char *result;
00032 
00033   va_start (args, format);
00034   result = vasnprintf (resultbuf, lengthp, format, args);
00035   va_end (args);
00036   return result;
00037 }

Generated on Mon Feb 5 10:54:27 2007 for WvStreams by  doxygen 1.5.1