~ubuntu-branches/ubuntu/intrepid/unzip/intrepid

« back to all changes in this revision

Viewing changes to theos/_fprintf.c

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-06-06 17:57:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040606175746-nl7p2dgp3aobyc2c
Tags: upstream-5.51
ImportĀ upstreamĀ versionĀ 5.51

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.
 
3
 
 
4
  See the accompanying file LICENSE, version 2000-Apr-09 or later
 
5
  (the contents of which are also included in zip.h) for terms of use.
 
6
  If, for some reason, all these files are missing, the Info-ZIP license
 
7
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
 
8
*/
 
9
#include <stdio.h>
 
10
#include <stdarg.h>
 
11
 
 
12
/* for Info and similar macroes. fprintf is already a macro and fprintf x
 
13
 * fools the preprocessor
 
14
 */
 
15
 
 
16
int _fprintf(FILE* fp, const char* fmt, ...)
 
17
{
 
18
    va_list ap;
 
19
    long n;
 
20
 
 
21
    va_start(ap, fmt);
 
22
    n = vfprintf(fp, fmt, (long*) ap);
 
23
    va_end(ap);
 
24
    return n;
 
25
}
 
26