source: trunk/minix/lib/stdio/loc_incl.h@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.5 KB
Line 
1/*
2 * loc_incl.h - local include file for stdio library
3 */
4/* $Header: /cvsup/minix/src/lib/stdio/loc_incl.h,v 1.1.1.1 2005/04/21 14:56:36 beng Exp $ */
5
6#include <stdio.h>
7
8#define io_testflag(p,x) ((p)->_flags & (x))
9
10#include <stdarg.h>
11
12#ifdef _ANSI
13int _doprnt(const char *format, va_list ap, FILE *stream);
14int _doscan(FILE * stream, const char *format, va_list ap);
15char *_i_compute(unsigned long val, int base, char *s, int nrdigits);
16char *_f_print(va_list *ap, int flags, char *s, char c, int precision);
17void __cleanup(void);
18
19FILE *popen(const char *command, const char *type);
20FILE *fdopen(int fd, const char *mode);
21
22#ifndef NOFLOAT
23char *_ecvt(long double value, int ndigit, int *decpt, int *sign);
24char *_fcvt(long double value, int ndigit, int *decpt, int *sign);
25#endif /* NOFLOAT */
26#endif
27
28#define FL_LJUST 0x0001 /* left-justify field */
29#define FL_SIGN 0x0002 /* sign in signed conversions */
30#define FL_SPACE 0x0004 /* space in signed conversions */
31#define FL_ALT 0x0008 /* alternate form */
32#define FL_ZEROFILL 0x0010 /* fill with zero's */
33#define FL_SHORT 0x0020 /* optional h */
34#define FL_LONG 0x0040 /* optional l */
35#define FL_LONGDOUBLE 0x0080 /* optional L */
36#define FL_WIDTHSPEC 0x0100 /* field width is specified */
37#define FL_PRECSPEC 0x0200 /* precision is specified */
38#define FL_SIGNEDCONV 0x0400 /* may contain a sign */
39#define FL_NOASSIGN 0x0800 /* do not assign (in scanf) */
40#define FL_NOMORE 0x1000 /* all flags collected */
Note: See TracBrowser for help on using the repository browser.