summaryrefslogtreecommitdiffstats
path: root/man3/cfree.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/cfree.3')
-rw-r--r--man3/cfree.322
1 files changed, 11 insertions, 11 deletions
diff --git a/man3/cfree.3 b/man3/cfree.3
index 80812804d..78d7a806f 100644
--- a/man3/cfree.3
+++ b/man3/cfree.3
@@ -31,7 +31,7 @@ size_t " elsize );
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR cfree ():
@@ -44,14 +44,14 @@ Feature Test Macro Requirements for glibc (see
.SH DESCRIPTION
This function should never be used.
Use
-.BR free (3)
+.MR free 3
instead.
Starting with glibc 2.26, it has been removed from glibc.
.SS 1-arg cfree
In glibc, the function
.BR cfree ()
is a synonym for
-.BR free (3),
+.MR free 3 ,
"added for compatibility with SunOS".
.P
Other systems have other functions with this name.
@@ -63,7 +63,7 @@ and sometimes in
Some SCO and Solaris versions have malloc libraries with a 3-argument
.BR cfree (),
apparently as an analog to
-.BR calloc (3).
+.MR calloc 3 .
.P
If you need it while porting something, add
.P
@@ -76,13 +76,13 @@ If you need it while porting something, add
to your file.
.P
A frequently asked question is "Can I use
-.BR free (3)
+.MR free 3
to free memory allocated with
-.BR calloc (3),
+.MR calloc 3 ,
or do I need
.BR cfree ()?"
Answer: use
-.BR free (3).
+.MR free 3 .
.P
An SCO manual writes: "The cfree routine is provided for compliance
to the iBCSe2 standard and simply calls free.
@@ -92,7 +92,7 @@ arguments to cfree are not used."
The SunOS version of
.BR cfree ()
(which is a synonym for
-.BR free (3))
+.MR free 3 )
returns 1 on success and 0 on failure.
In case of error,
.I errno
@@ -102,11 +102,11 @@ the value of
.I ptr
was not a pointer to a block previously allocated by
one of the routines in the
-.BR malloc (3)
+.MR malloc 3
family.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -129,4 +129,4 @@ None.
.\" commit 025b33ae84bb8f15b2748a1d8605dca453fce112
Removed in glibc 2.26.
.SH SEE ALSO
-.BR malloc (3)
+.MR malloc 3