Adapt man page with correct prototype information.
This commit is contained in:
parent
3466e84f46
commit
bb6540c5f4
|
@ -7,36 +7,26 @@ print, fprint, sprint, doprnt -- very simple formatted-output routines
|
||||||
.B #include <system.h>
|
.B #include <system.h>
|
||||||
.B #include <print.h>
|
.B #include <print.h>
|
||||||
.PP
|
.PP
|
||||||
.B void print(format [, arg] ... )
|
.B void print(char *format [, arg] ... )
|
||||||
.B char *format;
|
|
||||||
.PP
|
.PP
|
||||||
.B void fprint(filep, format [, arg] ... )
|
.B void fprint(File *filep, char *format [, arg] ... )
|
||||||
.B File *filep;
|
|
||||||
.B char *format;
|
|
||||||
.PP
|
.PP
|
||||||
.B char *sprint(s, format [, arg] ... )
|
.B char *sprint(char *s, char *format [, arg] ... )
|
||||||
.B char *s, *format;
|
|
||||||
.PP
|
.PP
|
||||||
.B void doprnt(filep, format, args)
|
.B void doprnt(File *filep, char *format, va_list args)
|
||||||
.B File *filep;
|
|
||||||
.B char *format;
|
|
||||||
.B va_list args;
|
|
||||||
.PP
|
.PP
|
||||||
.B int _format(buf, format, args)
|
.B int _format(char *buf, char *format, va_lsit args)
|
||||||
.B char *buf;
|
|
||||||
.B char *format;
|
|
||||||
.B va_list args;
|
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.I Print
|
.I print
|
||||||
writes output on standard output.
|
writes output on standard output.
|
||||||
.I Fprint
|
.I fprint
|
||||||
and
|
and
|
||||||
.I doprnt
|
.I doprnt
|
||||||
place output on the open file known by
|
place output on the open file known by
|
||||||
.IR filep .
|
.IR filep .
|
||||||
.I filep could for instance be STDOUT or STDERR.
|
.I filep could for instance be STDOUT or STDERR.
|
||||||
.I Sprint
|
.I sprint
|
||||||
places `output' in the string
|
places `output' in the string
|
||||||
.IR s ,
|
.IR s ,
|
||||||
followed by the character `\\0'.
|
followed by the character `\\0'.
|
||||||
|
@ -102,7 +92,7 @@ The
|
||||||
routine builds the string, but does not null-terminate it. It returns the
|
routine builds the string, but does not null-terminate it. It returns the
|
||||||
length of the string.
|
length of the string.
|
||||||
.PP
|
.PP
|
||||||
.I Doprnt
|
.I doprnt
|
||||||
takes
|
takes
|
||||||
.I args
|
.I args
|
||||||
as the address of the arguments of the format string.
|
as the address of the arguments of the format string.
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
*/
|
*/
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
#ifndef __PRINT_INCLUDED__
|
#ifndef __PRINT_INCLUDED__
|
||||||
#define __PRINT_INCLUDED__
|
#define __PRINT_INCLUDED__
|
||||||
|
|
Loading…
Reference in a new issue