/****************************************************************1Copyright (C) 1997-1999 Lucent Technologies2All Rights Reserved34Permission to use, copy, modify, and distribute this software and5its documentation for any purpose and without fee is hereby6granted, provided that the above copyright notice appear in all7copies and that both that the copyright notice and this8permission notice and warranty disclaimer appear in supporting9documentation, and that the name of Lucent or any of its entities10not be used in advertising or publicity pertaining to11distribution of the software without specific, written prior12permission.1314LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,15INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.16IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY17SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES18WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER19IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,20ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF21THIS SOFTWARE.22****************************************************************/2324/* stdio1.h -- for using Printf, Fprintf, Sprintf while25* retaining the system-supplied printf, fprintf, sprintf.26*/2728#ifndef STDIO1_H_included29#define STDIO1_H_included30#ifndef STDIO_H_included /* allow suppressing stdio.h */31#include <stdio.h> /* in case it's already included, */32#endif /* e.g., by cplex.h */3334#ifdef KR_headers35#ifndef _SIZE_T36#define _SIZE_T37typedef unsigned int size_t;38#endif39#define ANSI(x) ()40#include "varargs.h"41#ifndef Char42#define Char char43#endif44#else45#define ANSI(x) x46#include "stdarg.h"47#ifndef Char48#define Char void49#endif50#endif5152#ifndef NO_STDIO15354#ifdef __cplusplus55extern "C" {56#endif5758extern int Fprintf ANSI((FILE*, const char*, ...));59extern int Printf ANSI((const char*, ...));60extern int Sprintf ANSI((char*, const char*, ...));61extern int Snprintf ANSI((char*, size_t, const char*, ...));62extern void Perror ANSI((const char*));63extern int Vfprintf ANSI((FILE*, const char*, va_list));64extern int Vsprintf ANSI((char*, const char*, va_list));65extern int Vsnprintf ANSI((char*, size_t, const char*, va_list));6667#ifdef PF_BUF68extern FILE *stderr_ASL;69extern void (*pfbuf_print_ASL) ANSI((char*));70extern char *pfbuf_ASL;71extern void fflush_ASL ANSI((FILE*));72#ifdef fflush73#define old_fflush_ASL fflush74#undef fflush75#endif76#define fflush fflush_ASL77#endif7879#ifdef __cplusplus80}81#endif8283#undef printf84#undef fprintf85#undef sprintf86#undef perror87#undef vfprintf88#undef vsprintf89#define printf Printf90#define fprintf Fprintf91#undef snprintf /* for MacOSX */92#undef vsnprintf /* for MacOSX */93#define snprintf Snprintf94#define sprintf Sprintf95#define perror Perror96#define vfprintf Vfprintf97#define vsnprintf Vsnprintf98#define vsprintf Vsprintf99100#endif /* NO_STDIO1 */101102#endif /* STDIO1_H_included */103104105