|
|
1.1 root 1: /*ident "@(#)ctrans:incl/stream.h 1.1.5.1" */
2: /**************************************************************************
3: Copyright (c) 1984 AT&T
4: All Rights Reserved
5:
6: THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
7:
8: The copyright notice above does not evidence any
9: actual or intended publication of such source code.
10:
11: *****************************************************************************/
12:
13: #ifndef STREAMH
14: #define STREAMH
15:
16: #include <iostream.h>
17: #include <iomanip.h>
18: #include <stdiostream.h>
19:
20: #ifndef NULL
21: #define NULL 0
22: #endif
23:
24: extern char* oct(long, int =0);
25: extern char* dec(long, int =0);
26: extern char* hex(long, int =0);
27:
28: extern char* chr(int, int =0); /* chr(0) is the empty string "" */
29: extern char* str(const char*, int =0);
30: extern char* form(const char* ...);
31: /* printf format
32: * Things may go terribly wrong (maybe even core
33: * dumps, if form tries to create a string with
34: * more than "max_field_width" characters. */
35:
36: /* WS used to be a special in streams. The WS manipulator
37: * is implemented differently but may be extracted from an istream
38: * with the same effect as the old form.
39: */
40:
41: extern istream& WS(istream&) ;
42: extern void eatwhite(istream&) ;
43:
44: static const int input = (ios::in) ;
45: static const int output = (ios::out) ;
46: static const int append = (ios::app) ;
47: static const int atend = (ios::ate) ;
48: static const int _good = (ios::goodbit) ;
49: static const int _bad = (ios::badbit) ;
50: static const int _fail = (ios::failbit) ;
51: static const int _eof = (ios::eofbit) ;
52:
53: typedef ios::io_state state_value ;
54:
55: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.