From 74c3766d761a625bbfbad13c2a980c5ca2c32c31 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 13 Jun 2003 01:14:55 +0000 Subject: printf returns int now. also remove obsolete comment --- share/man/man9/printf.9 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'share/man/man9') diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9 index 3b41531f662..39eed2eb0d4 100644 --- a/share/man/man9/printf.9 +++ b/share/man/man9/printf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: printf.9,v 1.9 2003/06/11 18:07:23 tedu Exp $ +.\" $OpenBSD: printf.9,v 1.10 2003/06/13 01:14:54 tedu Exp $ .\" $NetBSD: kprintf.9,v 1.6 1999/03/16 00:40:47 garbled Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -50,7 +50,7 @@ .Sh SYNOPSIS .Fd #include .Fd #include -.Ft void +.Ft int .Fo "printf" .Fa "const char *format" .Fa "..." @@ -62,7 +62,7 @@ .Fa "const char *format" .Fa "..." .Fc -.Ft void +.Ft int .Fo "vprintf" .Fa "const char *format" .Fa "va_list ap" @@ -195,7 +195,9 @@ This format specifier is only available to .El .Sh RETURN VALUES The -.Fn snprintf +.Fn printf , +.Fn snprintf , +.Fn vprintf , and .Fn vsnprintf functions return the number of characters they placed in the buffer @@ -232,8 +234,6 @@ bail("descriptor %d is invalid.", 5) \(rA "bailing out: descriptor 5 is invalid" .Ed .Sh SEE ALSO -.\" The following page has not been written, but I am including a cross- -.\" reference to it in the hopes that it will inspire someone to write it. .Xr revoke 2 , .Xr printf 3 , .Xr ddb 4 , -- cgit v1.2.3