diff options
Diffstat (limited to 'src/lib/libc/string/strcat.3')
| -rw-r--r-- | src/lib/libc/string/strcat.3 | 21 | 
1 files changed, 9 insertions, 12 deletions
| diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3 index 6a7c51c487..e9e5163bd3 100644 --- a/src/lib/libc/string/strcat.3 +++ b/src/lib/libc/string/strcat.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: strcat.3,v 1.7 1999/06/06 06:57:52 pjanzen Exp $ | 36 | .\" $OpenBSD: strcat.3,v 1.8 2000/04/21 15:24:19 aaron Exp $ | 
| 37 | .\" | 37 | .\" | 
| 38 | .Dd July 8, 1997 | 38 | .Dd July 8, 1997 | 
| 39 | .Dt STRCAT 3 | 39 | .Dt STRCAT 3 | 
| @@ -53,8 +53,7 @@ The | |||
| 53 | .Fn strcat | 53 | .Fn strcat | 
| 54 | and | 54 | and | 
| 55 | .Fn strncat | 55 | .Fn strncat | 
| 56 | functions | 56 | functions append a copy of the null-terminated string | 
| 57 | append a copy of the null-terminated string | ||
| 58 | .Fa append | 57 | .Fa append | 
| 59 | to the end of the null-terminated string | 58 | to the end of the null-terminated string | 
| 60 | .Fa s , | 59 | .Fa s , | 
| @@ -66,8 +65,7 @@ must have sufficient space to hold the result. | |||
| 66 | .Pp | 65 | .Pp | 
| 67 | The | 66 | The | 
| 68 | .Fn strncat | 67 | .Fn strncat | 
| 69 | function | 68 | function appends not more than | 
| 70 | appends not more than | ||
| 71 | .Fa count | 69 | .Fa count | 
| 72 | characters where space for the terminating | 70 | characters where space for the terminating | 
| 73 | .Ql \e0 | 71 | .Ql \e0 | 
| @@ -78,8 +76,7 @@ The | |||
| 78 | .Fn strcat | 76 | .Fn strcat | 
| 79 | and | 77 | and | 
| 80 | .Fn strncat | 78 | .Fn strncat | 
| 81 | functions | 79 | functions return the pointer | 
| 82 | return the pointer | ||
| 83 | .Fa s . | 80 | .Fa s . | 
| 84 | .Sh EXAMPLES | 81 | .Sh EXAMPLES | 
| 85 | The following appends | 82 | The following appends | 
| @@ -109,9 +106,10 @@ The above will copy as many characters from | |||
| 109 | .Dq Li input | 106 | .Dq Li input | 
| 110 | to | 107 | to | 
| 111 | .Dq Li buf | 108 | .Dq Li buf | 
| 112 | as will | 109 | as will fit. | 
| 113 | fit. It then appends as many characters from suffix as will fit (or none | 110 | It then appends as many characters from suffix as will fit (or none | 
| 114 | if there is no space). For operations like this, the | 111 | if there is no space). | 
| 112 | For operations like this, the | ||
| 115 | .Xr strlcpy 3 | 113 | .Xr strlcpy 3 | 
| 116 | and | 114 | and | 
| 117 | .Xr strlcat 3 | 115 | .Xr strlcat 3 | 
| @@ -133,6 +131,5 @@ The | |||
| 133 | .Fn strcat | 131 | .Fn strcat | 
| 134 | and | 132 | and | 
| 135 | .Fn strncat | 133 | .Fn strncat | 
| 136 | functions | 134 | functions conform to | 
| 137 | conform to | ||
| 138 | .St -ansiC . | 135 | .St -ansiC . | 
