delorie.com/djgpp/doc/libc/libc_851.html   search  
libc.a reference

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

vfprintf

Syntax

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

int vfprintf(FILE *file, const char *format, va_list arguments);

Description

Sends formatted output from the arguments to the file. See section printf.

Return Value

The number of characters written.

Portability

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

Example

 
void my_errmsg(char *format, ...)
{
  va_list arg;

  va_start(arg, format);
  fprintf(stderr, "my_errmsg: ");
  vfprintf(stderr, format, arg);
  va_end(arg);
}

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004