summaryrefslogtreecommitdiff
path: root/man/XtMalloc.man
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-04-10 19:49:35 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-11 04:19:44 -0400
commita89acaec14bd988659ebdc2ebb4b99c1eea5aa7e (patch)
tree629bfd55ce052bfcd485b7c86d70b13bf169e335 /man/XtMalloc.man
parentcf9e8c73c4ffa671d580938c9a84d6ef0bd2710d (diff)
downloadxorg-lib-libXt-a89acaec14bd988659ebdc2ebb4b99c1eea5aa7e.tar.gz
The ".BR" macro is used to join bold/regular text.
Use ".B" when only bold is intended. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'man/XtMalloc.man')
-rw-r--r--man/XtMalloc.man38
1 files changed, 19 insertions, 19 deletions
diff --git a/man/XtMalloc.man b/man/XtMalloc.man
index e5af2f6..7274ed8 100644
--- a/man/XtMalloc.man
+++ b/man/XtMalloc.man
@@ -93,69 +93,69 @@ Specifies a pointer to write a newly allocated string to.
Specifies a formatting string as defined by sprintf(3c)
.SH DESCRIPTION
The
-.BR XtMalloc
+.B XtMalloc
functions returns a pointer to a block of storage of at least
the specified size bytes.
If there is insufficient memory to allocate the new block,
-.BR XtMalloc
+.B XtMalloc
calls
.BR XtErrorMsg .
.LP
The
-.BR XtCalloc
+.B XtCalloc
function allocates space for the specified number of array elements
of the specified size and initializes the space to zero.
If there is insufficient memory to allocate the new block,
-.BR XtCalloc
+.B XtCalloc
calls
.BR XtErrorMsg .
.LP
The
-.BR XtRealloc
+.B XtRealloc
function changes the size of a block of storage (possibly moving it).
Then, it copies the old contents (or as much as will fit) into the new block
and frees the old block.
If there is insufficient memory to allocate the new block,
-.BR XtRealloc
+.B XtRealloc
calls
.BR XtErrorMsg .
If ptr is NULL,
-.BR XtRealloc
+.B XtRealloc
allocates the new storage without copying the old contents;
that is, it simply calls
.BR XtMalloc .
.LP
The
-.BR XtFree
+.B XtFree
function returns storage and allows it to be reused.
If ptr is NULL,
-.BR XtFree
+.B XtFree
returns immediately.
.LP
-.BR XtNew
+.B XtNew
returns a pointer to the allocated storage.
If there is insufficient memory to allocate the new block,
-.BR XtNew
+.B XtNew
calls
.BR XtErrorMsg .
-.BR XtNew
+.B XtNew
is a convenience macro that calls
-.BR XtMalloc
+.B XtMalloc
with the following arguments specified:
.LP
.RS .5i
((type *) XtMalloc((unsigned) sizeof(type))
.RE
.LP
-.BR XtNewString
+.B XtNewString
returns a pointer to the allocated storage.
If there is insufficient memory to allocate the new block,
-.BR XtNewString
+.B XtNewString
calls
.BR XtErrorMsg .
-.BR XtNewString
+.B XtNewString
is a convenience macro that calls
-.BR XtMalloc
+.B XtMalloc
with the following arguments specified:
.LP
.RS .5i
@@ -163,14 +163,14 @@ with the following arguments specified:
.RE
.LP
The
-.BR XtAsprintf
+.B XtAsprintf
function allocates space for a string large enough to hold the string
specified by the sprintf(3c) format pattern when used with the remaining
arguments, and fills it with the formatted results.
The address of the allocated string is placed into the pointer passed as ret.
The length of the string (not including the terminating null byte) is returned.
If there is insufficient memory to allocate the new block,
-.BR XtAsprintf
+.B XtAsprintf
calls
.BR XtErrorMsg .
.SH "SEE ALSO"