summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/strcpy.3')
-rw-r--r--lib/libc/string/strcpy.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 8304508df61..504f42f2bae 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strcpy.3,v 1.12 2003/06/02 20:18:38 millert Exp $
+.\" $OpenBSD: strcpy.3,v 1.13 2005/02/25 03:12:44 cloder Exp $
.\"
.Dd June 29, 1991
.Dt STRCPY 3
@@ -98,12 +98,12 @@ to
.Dq abcdef
and does
.Em not
-null terminate
+NUL terminate
.Va chararray
because the source string is >= the length parameter.
.Fn strncpy
.Em only
-null terminates the destination string when the length of the source
+NUL terminates the destination string when the length of the source
string is less than the length parameter.
.Bd -literal -offset indent
(void)strncpy(chararray, "abcdefgh", 6);
@@ -113,12 +113,12 @@ The following copies as many characters from
.Va input
to
.Va buf
-as will fit and null terminates the result.
+as will fit and NUL terminates the result.
Because
.Fn strncpy
does
.Em not
-guarantee to null terminate the string itself, we must do this by hand.
+guarantee to NUL terminate the string itself, we must do this by hand.
.Bd -literal -offset indent
char buf[BUFSIZ];