Back to index

glibc  2.9
Defines | Functions
asprintf.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <libioP.h>

Go to the source code of this file.

Defines

#define vasprintf(s, f, a)   _IO_vasprintf (s, f, a)

Functions

int ___asprintf (char **string_ptr, const char *format,...)

Define Documentation

#define vasprintf (   s,
  f,
  a 
)    _IO_vasprintf (s, f, a)

Definition at line 24 of file asprintf.c.


Function Documentation

int ___asprintf ( char **  string_ptr,
const char *  format,
  ... 
)

Definition at line 31 of file asprintf.c.

{
  va_list arg;
  int done;

  va_start (arg, format);
  done = vasprintf (string_ptr, format, arg);
  va_end (arg);

  return done;
}