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