00001
00002
00003
00004
00005
00006 #include <stdio.h>
00007 #include <ansi.h>
00008
00009 #define io_testflag(p,x) ((p)->_flags & (x))
00010
00011 #include <stdarg.h>
00012
00013 #if defined(__LONG_LONG_SUPPORTED)
00014 typedef long long printval_s_t;
00015 typedef unsigned long long printval_u_t;
00016 #else
00017 typedef long printval_s_t;
00018 typedef unsigned long printval_u_t;
00019 #endif
00020
00021 #ifdef _ANSI
00022 int _doprnt(const char *format, va_list ap, FILE *stream);
00023 int _doscan(FILE * stream, const char *format, va_list ap);
00024 char *_i_compute(printval_u_t val, int base, char *s, int nrdigits);
00025 char *_f_print(va_list *ap, int flags, char *s, char c, int precision);
00026 void __cleanup(void);
00027
00028 FILE *popen(const char *command, const char *type);
00029 FILE *fdopen(int fd, const char *mode);
00030
00031 #ifndef NOFLOAT
00032 char *_ecvt(long double value, int ndigit, int *decpt, int *sign);
00033 char *_fcvt(long double value, int ndigit, int *decpt, int *sign);
00034 #endif
00035 #endif
00036
00037 #define FL_LJUST 0x0001
00038 #define FL_SIGN 0x0002
00039 #define FL_SPACE 0x0004
00040 #define FL_ALT 0x0008
00041 #define FL_ZEROFILL 0x0010
00042 #define FL_SHORT 0x0020
00043 #define FL_LONG 0x0040
00044 #define FL_LONGDOUBLE 0x0080
00045 #define FL_WIDTHSPEC 0x0100
00046 #define FL_PRECSPEC 0x0200
00047 #define FL_SIGNEDCONV 0x0400
00048 #define FL_NOASSIGN 0x0800
00049 #define FL_NOMORE 0x1000
00050 #define FL_LONGLONG 0x2000