diff options
Diffstat (limited to 'src/lib/libc/string/strcpy.3')
| -rw-r--r-- | src/lib/libc/string/strcpy.3 | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3 index 428e474d43..400eeee622 100644 --- a/src/lib/libc/string/strcpy.3 +++ b/src/lib/libc/string/strcpy.3 | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | .\" $OpenBSD: strcpy.3,v 1.16 2011/07/25 00:38:53 schwarze Exp $ | ||
| 2 | .\" | ||
| 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. | 4 | .\" All rights reserved. |
| 3 | .\" | 5 | .\" |
| @@ -29,9 +31,7 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
| 31 | .\" | 33 | .\" |
| 32 | .\" $OpenBSD: strcpy.3,v 1.15 2007/05/31 19:19:32 jmc Exp $ | 34 | .Dd $Mdocdate: July 25 2011 $ |
| 33 | .\" | ||
| 34 | .Dd $Mdocdate: May 31 2007 $ | ||
| 35 | .Dt STRCPY 3 | 35 | .Dt STRCPY 3 |
| 36 | .Os | 36 | .Os |
| 37 | .Sh NAME | 37 | .Sh NAME |
| @@ -57,8 +57,9 @@ to | |||
| 57 | .Ql \e0 | 57 | .Ql \e0 |
| 58 | character). | 58 | character). |
| 59 | .Pp | 59 | .Pp |
| 60 | The | ||
| 60 | .Fn strncpy | 61 | .Fn strncpy |
| 61 | copies not more than | 62 | function copies not more than |
| 62 | .Fa len | 63 | .Fa len |
| 63 | characters into | 64 | characters into |
| 64 | .Fa dst , | 65 | .Fa dst , |
| @@ -141,7 +142,10 @@ is simply: | |||
| 141 | .Xr memccpy 3 , | 142 | .Xr memccpy 3 , |
| 142 | .Xr memcpy 3 , | 143 | .Xr memcpy 3 , |
| 143 | .Xr memmove 3 , | 144 | .Xr memmove 3 , |
| 144 | .Xr strlcpy 3 | 145 | .Xr strcat 3 , |
| 146 | .Xr strlcpy 3 , | ||
| 147 | .Xr wcscpy 3 , | ||
| 148 | .Xr wcslcpy 3 | ||
| 145 | .Sh STANDARDS | 149 | .Sh STANDARDS |
| 146 | The | 150 | The |
| 147 | .Fn strcpy | 151 | .Fn strcpy |
| @@ -149,3 +153,10 @@ and | |||
| 149 | .Fn strncpy | 153 | .Fn strncpy |
| 150 | functions conform to | 154 | functions conform to |
| 151 | .St -ansiC . | 155 | .St -ansiC . |
| 156 | .Sh HISTORY | ||
| 157 | The | ||
| 158 | .Fn strcpy | ||
| 159 | and | ||
| 160 | .Fn strncpy | ||
| 161 | functions first appeared in | ||
| 162 | .At v7 . | ||
