Back to index

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

Go to the source code of this file.

Defines

#define __vsnprintf(s, l, f, a)   _IO_vsnprintf (s, l, f, a)

Functions

int __snprintf (char *s, size_t maxlen, const char *format,...)

Define Documentation

#define __vsnprintf (   s,
  l,
  f,
  a 
)    _IO_vsnprintf (s, l, f, a)

Definition at line 23 of file snprintf.c.


Function Documentation

int __snprintf ( char *  s,
size_t  maxlen,
const char *  format,
  ... 
)

Definition at line 29 of file snprintf.c.

{
  va_list arg;
  int done;

  va_start (arg, format);
  done = __vsnprintf (s, maxlen, format, arg);
  va_end (arg);

  return done;
}