Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
asprintf.c File Reference
#include <stdarg.h>
#include <stdio.h>
Include dependency graph for asprintf.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

int asprintf (char **string, const char *fmt,...)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 3 of file asprintf.c.

Function Documentation

◆ asprintf()

int asprintf ( char **  string,
const char *  fmt,
  ... 
)

Definition at line 7 of file asprintf.c.

8 {
9  int r;
10  va_list ap;
11 
12  va_start(ap, fmt);
13  r = vasprintf(string, fmt, ap);
14  va_end(ap);
15 
16  return r;
17 }
#define va_end(v)
Definition: stdarg.h:9
#define va_start(v, l)
Definition: stdarg.h:8
__builtin_va_list va_list
Definition: stdarg.h:13
int vasprintf(char **string, const char *fmt, va_list arg_list)
Definition: vasprintf.c:8

References va_end, va_start, and vasprintf().