diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-06-11 17:28:52 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-06-11 17:28:52 +0000 |
commit | c932210e181d5cf559b18cb11d82433dda9e32ec (patch) | |
tree | e9a7919ad1487b2d69085b3809156745cfd1e97a /share/man/man9 | |
parent | 268bcc476d57b2b9617025eb6e3df88d03877431 (diff) |
no more strcpy, strcat. sprintf -> snprintf. ok deraadt@
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/kern.9 | 10 | ||||
-rw-r--r-- | share/man/man9/printf.9 | 11 |
2 files changed, 7 insertions, 14 deletions
diff --git a/share/man/man9/kern.9 b/share/man/man9/kern.9 index d87b66e9805..c116427b13b 100644 --- a/share/man/man9/kern.9 +++ b/share/man/man9/kern.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kern.9,v 1.7 2003/06/10 17:56:35 millert Exp $ +.\" $OpenBSD: kern.9,v 1.8 2003/06/11 17:28:51 tedu Exp $ .\" .\" Copyright (c) 2002, 2003 CubeSoft Communications, Inc. .\" <http://www.csoft.org> @@ -168,10 +168,6 @@ and .Ft size_t .Fn strlen "const char *s" .Ft char * -.Fn strcat "char *s" "const char *append" -.Ft char * -.Fn strcpy "char *dst" "const char *src" -.Ft char * .Fn strncpy "char *dst" "const char *src" "size_t len" .Ft size_t .Fn strlcpy "char *dst" "const char *src" "size_t size" @@ -187,8 +183,6 @@ and .Pp Those functions have the same semantics as their libc counterparts, .Xr strlen 3 , -.Xr strcat 3 , -.Xr strcpy 3 , .Xr strncpy 3 , .Xr strlcpy 3 , .Xr strlcat 3 , @@ -247,8 +241,6 @@ The .Fn memchr , .Fn memcmp , .Fn strlen , -.Fn strcat , -.Fn strcpy , .Fn strncpy , .Fn strcmp , .Fn strncmp diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9 index 9e1bc6a12ff..53c9d1a2d3b 100644 --- a/share/man/man9/printf.9 +++ b/share/man/man9/printf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: printf.9,v 1.7 2003/03/06 04:03:40 david Exp $ +.\" $OpenBSD: printf.9,v 1.8 2003/06/11 17:28:51 tedu Exp $ .\" $NetBSD: kprintf.9,v 1.6 1999/03/16 00:40:47 garbled Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -40,7 +40,7 @@ .Os .Sh NAME .Nm printf , -.Nm sprintf , +.Nm snprintf , .Nm vprintf , .Nm uprintf , .Nm ttyprintf , @@ -55,7 +55,8 @@ .Fa "..." .Fc .Ft int -.Fo "sprintf" +.Fo "snprintf" +.Fa "size_t len" .Fa "char *buf" .Fa "const char *format" .Fa "..." @@ -81,7 +82,7 @@ .Sh DESCRIPTION The .Fn printf , -.Fn sprintf , +.Fn snprintf , .Fn vprintf , .Fn uprintf , .Fn ttyprintf , @@ -185,7 +186,7 @@ This format specifier is only available to .El .Sh RETURN VALUES The -.Fn sprintf +.Fn snprintf function returns the number of characters it placed in the buffer .Fa buf . .Sh EXAMPLES |