|
|
1.1 root 1: /* ident "@(#)ctrans:src/ios_printf.h 1.2" */
2: /* Begin iostream_printf.H -- printf functions that work on ostreams.
3: someday, perhaps, scanf functions for istreams. */
4:
5: #include <stdarg.h>
6: #include <iostream.h>
7:
8: int vostream_printf(const char *format, va_list argp, ostream& fp);
9: int ostream_printf(ostream& stream, const char * format ...);
10:
11: // returns count of characters added.
12: int printf_to_string (char * string, int length, const char * format ...);
13:
14: // returns string which came from malloc.
15: char * printf_to_alloc_string (const char * format ...);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.