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 unzip.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 16int _sprintf(char *s, const char *fmt, ...) 17{ 18 va_list ap; 19 long n; 20 21 va_start(ap, fmt); 22 n = vsprintf(s, fmt, (long*) ap); 23 va_end(ap); 24 return n; 25} 26 27