diff options
Diffstat (limited to 'src/lib/libc/string/strcat.3')
-rw-r--r-- | src/lib/libc/string/strcat.3 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3 index 89d368c3fb..b81e724917 100644 --- a/src/lib/libc/string/strcat.3 +++ b/src/lib/libc/string/strcat.3 | |||
@@ -29,7 +29,7 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: strcat.3,v 1.10 2005/02/25 03:12:44 cloder Exp $ | 32 | .\" $OpenBSD: strcat.3,v 1.11 2005/08/06 03:21:36 jaredy Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd July 8, 1997 | 34 | .Dd July 8, 1997 |
35 | .Dt STRCAT 3 | 35 | .Dt STRCAT 3 |
@@ -78,7 +78,7 @@ functions return the pointer | |||
78 | The following appends | 78 | The following appends |
79 | .Dq Li abc | 79 | .Dq Li abc |
80 | to | 80 | to |
81 | .Dq Li chararray : | 81 | .Va chararray : |
82 | .Bd -literal -offset indent | 82 | .Bd -literal -offset indent |
83 | char *letters = "abcdefghi"; | 83 | char *letters = "abcdefghi"; |
84 | 84 | ||
@@ -99,11 +99,13 @@ buf[sizeof(buf) - 1] = '\e0'; | |||
99 | .Ed | 99 | .Ed |
100 | .Pp | 100 | .Pp |
101 | The above will copy as many characters from | 101 | The above will copy as many characters from |
102 | .Dq Li input | 102 | .Va input |
103 | to | 103 | to |
104 | .Dq Li buf | 104 | .Va buf |
105 | as will fit. | 105 | as will fit. |
106 | It then appends as many characters from suffix as will fit (or none | 106 | It then appends as many characters from |
107 | .Va suffix | ||
108 | as will fit (or none | ||
107 | if there is no space). | 109 | if there is no space). |
108 | For operations like this, the | 110 | For operations like this, the |
109 | .Xr strlcpy 3 | 111 | .Xr strlcpy 3 |