diff options
| author | aaron <> | 2000-04-21 15:24:20 +0000 |
|---|---|---|
| committer | aaron <> | 2000-04-21 15:24:20 +0000 |
| commit | 9fb35611cc3d03bef8b690b62e0904507c414a61 (patch) | |
| tree | cbb158a96fec3a91f1d59c3e9f768b10d6ed872e /src/lib/libc/string/strcpy.3 | |
| parent | a4336f357f9e30dffdfad4909b24bd2e82c096a2 (diff) | |
| download | openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.tar.gz openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.tar.bz2 openbsd-9fb35611cc3d03bef8b690b62e0904507c414a61.zip | |
Flesh out libc string function man pages.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/string/strcpy.3 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3 index aab10f9ba8..1dbeafa6e8 100644 --- a/src/lib/libc/string/strcpy.3 +++ b/src/lib/libc/string/strcpy.3 | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
| 35 | .\" | 35 | .\" |
| 36 | .\" $OpenBSD: strcpy.3,v 1.9 1999/06/29 18:01:33 aaron Exp $ | 36 | .\" $OpenBSD: strcpy.3,v 1.10 2000/04/21 15:24:20 aaron Exp $ |
| 37 | .\" | 37 | .\" |
| 38 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
| 39 | .Dt STRCPY 3 | 39 | .Dt STRCPY 3 |
| @@ -53,8 +53,7 @@ The | |||
| 53 | .Fn strcpy | 53 | .Fn strcpy |
| 54 | and | 54 | and |
| 55 | .Fn strncpy | 55 | .Fn strncpy |
| 56 | functions | 56 | functions copy the string |
| 57 | copy the string | ||
| 58 | .Fa src | 57 | .Fa src |
| 59 | to | 58 | to |
| 60 | .Fa dst | 59 | .Fa dst |
| @@ -87,8 +86,7 @@ The | |||
| 87 | .Fn strcpy | 86 | .Fn strcpy |
| 88 | and | 87 | and |
| 89 | .Fn strncpy | 88 | .Fn strncpy |
| 90 | functions | 89 | functions return |
| 91 | return | ||
| 92 | .Fa dst . | 90 | .Fa dst . |
| 93 | .Sh EXAMPLES | 91 | .Sh EXAMPLES |
| 94 | The following sets | 92 | The following sets |
| @@ -120,7 +118,8 @@ The following copies as many characters from | |||
| 120 | .Va input | 118 | .Va input |
| 121 | to | 119 | to |
| 122 | .Va buf | 120 | .Va buf |
| 123 | as will fit and null terminates the result. Because | 121 | as will fit and null terminates the result. |
| 122 | Because | ||
| 124 | .Fn strncpy | 123 | .Fn strncpy |
| 125 | does | 124 | does |
| 126 | .Em not | 125 | .Em not |
| @@ -134,7 +133,8 @@ buf[sizeof(buf) - 1] = '\e0'; | |||
| 134 | .Pp | 133 | .Pp |
| 135 | Note that | 134 | Note that |
| 136 | .Xr strlcpy 3 | 135 | .Xr strlcpy 3 |
| 137 | is a better choice for this kind of operation. The equivalent using | 136 | is a better choice for this kind of operation. |
| 137 | The equivalent using | ||
| 138 | .Xr strlcpy 3 | 138 | .Xr strlcpy 3 |
| 139 | is simply: | 139 | is simply: |
| 140 | .Bd -literal -offset indent | 140 | .Bd -literal -offset indent |
| @@ -151,6 +151,5 @@ The | |||
| 151 | .Fn strcpy | 151 | .Fn strcpy |
| 152 | and | 152 | and |
| 153 | .Fn strncpy | 153 | .Fn strncpy |
| 154 | functions | 154 | functions conform to |
| 155 | conform to | ||
| 156 | .St -ansiC . | 155 | .St -ansiC . |
