www.delorie.com/djgpp/doc/libc/libc_856.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

vsprintf

Syntax

 
#include <stdio.h>
#include <stdarg.h>

int vsprintf(char *buffer, const char *format, va_list arguments);

Description

Sends formatted output from the arguments to the buffer. See section printf. See section vfprintf.

To avoid buffer overruns, it is safer to use vsnprintf() (see section vsnprintf).

Return Value

The number of characters written.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004