isblank() implementation.
[minix.git] / lib / libc / stdio / loc_incl.h
blob1578003108b7bc34306f403476adbbfb1748ab2d
1 /*
2 * loc_incl.h - local include file for stdio library
3 */
4 /* $Header$ */
6 #include <stdio.h>
7 #include <ansi.h>
9 #define io_testflag(p,x) ((p)->_flags & (x))
11 #include <stdarg.h>
13 #if defined(__LONG_LONG_SUPPORTED)
14 typedef long long printval_s_t;
15 typedef unsigned long long printval_u_t;
16 #else
17 typedef long printval_s_t;
18 typedef unsigned long printval_u_t;
19 #endif
21 #ifdef _ANSI
22 int _doprnt(const char *format, va_list ap, FILE *stream);
23 int _doscan(FILE * stream, const char *format, va_list ap);
24 char *_i_compute(printval_u_t val, int base, char *s, int nrdigits);
25 char *_f_print(va_list *ap, int flags, char *s, char c, int precision);
26 void __cleanup(void);
28 FILE *popen(const char *command, const char *type);
29 FILE *fdopen(int fd, const char *mode);
31 #ifndef NOFLOAT
32 char *_ecvt(long double value, int ndigit, int *decpt, int *sign);
33 char *_fcvt(long double value, int ndigit, int *decpt, int *sign);
34 #endif /* NOFLOAT */
35 #endif
37 #define FL_LJUST 0x0001 /* left-justify field */
38 #define FL_SIGN 0x0002 /* sign in signed conversions */
39 #define FL_SPACE 0x0004 /* space in signed conversions */
40 #define FL_ALT 0x0008 /* alternate form */
41 #define FL_ZEROFILL 0x0010 /* fill with zero's */
42 #define FL_SHORT 0x0020 /* optional h */
43 #define FL_LONG 0x0040 /* optional l */
44 #define FL_LONGDOUBLE 0x0080 /* optional L */
45 #define FL_WIDTHSPEC 0x0100 /* field width is specified */
46 #define FL_PRECSPEC 0x0200 /* precision is specified */
47 #define FL_SIGNEDCONV 0x0400 /* may contain a sign */
48 #define FL_NOASSIGN 0x0800 /* do not assign (in scanf) */
49 #define FL_NOMORE 0x1000 /* all flags collected */
50 #define FL_LONGLONG 0x2000 /* 64-bit for ints */