aboutsummaryrefslogtreecommitdiffstats
path: root/man3/strdup.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/strdup.3')
-rw-r--r--man3/strdup.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/strdup.3 b/man3/strdup.3
index e19c03cf68..075982bbb1 100644
--- a/man3/strdup.3
+++ b/man3/strdup.3
@@ -47,11 +47,11 @@ strdup, strndup, strdupa, strndupa \- duplicate a string
.sp
.fi
.SH DESCRIPTION
-The \fBstrdup()\fP function returns a pointer to a new string which
+The \fBstrdup\fP() function returns a pointer to a new string which
is a duplicate of the string \fIs\fP. Memory for the new string is
obtained with \fBmalloc\fP(3), and can be freed with \fBfree\fP(3).
-The \fBstrndup()\fP function is similar, but only copies at most
+The \fBstrndup\fP() function is similar, but only copies at most
\fIn\fP characters. If \fIs\fP is longer than \fIn\fP, only \fIn\fP
characters are copied, and a terminating NUL is added.
@@ -60,7 +60,7 @@ to allocate the buffer. They are only available when using the GNU
GCC suite, and suffer from the same limitations described in \fBalloca(3)\fP.
.SH "RETURN VALUE"
-The \fBstrdup()\fP function returns a pointer to the duplicated
+The \fBstrdup\fP() function returns a pointer to the duplicated
string, or NULL if insufficient memory was available.
.SH ERRORS
.TP
@@ -69,7 +69,7 @@ Insufficient memory available to allocate duplicate string.
.SH "CONFORMING TO"
.\" 4.3BSD-Reno, not (first) 4.3BSD.
SVID 3, 4.3BSD.
-\fBstrndup()\fP, \fBstrdupa()\fP, and \fBstrndupa()\fP are GNU extensions.
+\fBstrndup\fP(), \fBstrdupa\fP(), and \fBstrndupa\fP() are GNU extensions.
.SH "SEE ALSO"
.BR alloca (3),
.BR calloc (3),