aboutsummaryrefslogtreecommitdiffstats
path: root/man3/malloc_hook.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2017-08-17 23:40:17 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2017-08-17 23:40:17 +0200
commitbdd915e20f87346dc07b93f8f26386feb92d2c44 (patch)
tree60f0f1d40ae346321bf7948d04f7136d2a0a0809 /man3/malloc_hook.3
parentba39b288ab07149417867533821300256f310615 (diff)
downloadman-pages-bdd915e20f87346dc07b93f8f26386feb92d2c44.tar.gz
_syscall.2, capget.2, ioprio_set.2, semop.2, send.2, ctime.3, dysize.3, fenv.3, fmtmsg.3, ftok.3, ftw.3, getaddrinfo.3, getgrent_r.3, gethostbyname.3, getopt.3, getpw.3, getpwent_r.3, getsubopt.3, getutent.3, glob.3, if_nameindex.3, inet.3, lseek64.3, malloc_hook.3, mbrtowc.3, mkstemp.3, mq_receive.3, mq_send.3, posix_spawn.3, putgrent.3, putpwent.3, qsort.3, raise.3, rand.3, rtime.3, setaliasent.3, setbuf.3, shm_open.3, significand.3, sigqueue.3, statvfs.3, strfromd.3, strptime.3, strtol.3, strtoul.3, termios.3, tgamma.3, timeradd.3, tsearch.3, tzset.3, updwtmp.3, usleep.3, wcstok.3, console_codes.4, hd.4, hpsa.4, mem.4, null.4, ram.4, sd.4, ttyS.4, filesystems.5, group.5, passwd.5, shells.5, termcap.5, ttytype.5, tzfile.5, utmp.5, ascii.7, bootparam.7, complex.7, cpuset.7, epoll.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/malloc_hook.3')
-rw-r--r--man3/malloc_hook.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/malloc_hook.3 b/man3/malloc_hook.3
index 98be198e09..9c871b9eee 100644
--- a/man3/malloc_hook.3
+++ b/man3/malloc_hook.3
@@ -91,8 +91,8 @@ Programmers should instead preempt calls to the relevant functions
by defining and exporting functions such as "malloc" and "free".
.SH EXAMPLE
Here is a short example of how to use these variables.
-.sp
-.nf
+.PP
+.EX
#include <stdio.h>
#include <malloc.h>
@@ -136,7 +136,7 @@ my_malloc_hook(size_t size, const void *caller)
return result;
}
-.fi
+.EX
.SH SEE ALSO
.BR mallinfo (3),
.BR malloc (3),