_print/_doprnt; curses on sys III
barb at hpfcms.UUCP
barb at hpfcms.UUCP
Thu Jun 14 07:20:00 AEST 1984
There are two different source files shipped for printf with System III.
One version of printf() uses doprnt. doprnt is written in vax assembly
language. The second version of printf() uses _print. _print is
written in C. Thus, the HP9000 series 500 and series 200 used the
source for _print.
The arguments to _print are _print(format, args). format is a char
pointer to the format string and args is a char pointer to the list of
arguments to be printed. A global variable _pfile (FILE *) must be set
to the stream pointer associated with the file to be written on before
calling _print.
System V.2 now uses only doprnt for printf(). They ship both a vax
assembly language version and a C version. The 4.0 release of the
Series 500 and 2.1 release of the Series 200 (both to be released late
this summer) will use System V.2 doprnt.
_print and doprint are not valid user entry points and are explicitly
undocumented both by HP9000 and by Bell because their interface is
subject to change in future releases.
Barbara Flahive, Technical Support
Hewlett-Packard - Ft.Collins, CO
{hplabs,ihnp4}!hpfcla!barb
More information about the Comp.unix.wizards
mailing list