PIPS
asprintf.c File Reference
#include <config.h>
#include <stdio.h>
#include <stdarg.h>
+ Include dependency graph for asprintf.c:

Go to the source code of this file.

Functions

int asprintf (char **resultp, const char *format,...)
 Formatted output to strings. More...
 

Function Documentation

◆ asprintf()

int asprintf ( char **  resultp,
const char *  format,
  ... 
)

Formatted output to strings.

We have here to HACK GCC include that prevent use of these function.

Copyright (C) 1999, 2002, 2006-2007, 2009-2014 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
Specification.

Definition at line 30 of file asprintf.c.

31 {
32  va_list args;
33  int result;
34 
35  va_start (args, format);
36  result = vasprintf (resultp, format, args);
37  va_end (args);
38  return result;
39 }
int vasprintf(char **resultp, const char *format, va_list args)
Formatted output to strings.
Definition: vasprintf.c:33

References vasprintf().

+ Here is the call graph for this function: