diff options
Diffstat (limited to 'man3/malloc_hook.3')
| -rw-r--r-- | man3/malloc_hook.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/man3/malloc_hook.3 b/man3/malloc_hook.3 index f8552bb05e..1280b8519b 100644 --- a/man3/malloc_hook.3 +++ b/man3/malloc_hook.3 @@ -30,10 +30,10 @@ __after_morecore_hook \- malloc debugging variables .BI "void (*__after_morecore_hook)(void);" .SH DESCRIPTION The GNU C library lets you modify the behavior of -.IR malloc (), -.IR realloc (), +.BR malloc (), +.BR realloc (), and -.IR free () +.BR free () by specifying appropriate hook functions. You can use these hooks to help you debug programs that use dynamic memory allocation, for example. @@ -58,20 +58,20 @@ The four functions pointed to by .BR __memalign_hook , .BR __free_hook have a prototype like the functions -.IR malloc (), -.IR realloc (), -.IR memalign (), -.IR free (), +.BR malloc (), +.BR realloc (), +.BR memalign (), +.BR free (), respectively, except that they have a final argument .I caller that gives the address of the caller of -.IR malloc (), +.BR malloc (), etc. .LP The variable .B __after_morecore_hook points at a function that is called each time after -.IR sbrk () +.BR sbrk () was asked for more memory. .SH "EXAMPLE" Here is a short example of how to use these variables. |
