diff options
Diffstat (limited to 'man3/mallopt.3')
-rw-r--r-- | man3/mallopt.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/man3/mallopt.3 b/man3/mallopt.3 index f43b6d578..5f73c499d 100644 --- a/man3/mallopt.3 +++ b/man3/mallopt.3 @@ -574,31 +574,31 @@ main(): returned from second free() call #include <malloc.h> #include <stdio.h> #include <stdlib.h> - +\& int main(int argc, char *argv[]) { char *p; - +\& if (argc > 1) { if (mallopt(M_CHECK_ACTION, atoi(argv[1])) != 1) { fprintf(stderr, "mallopt() failed"); exit(EXIT_FAILURE); } } - +\& p = malloc(1000); if (p == NULL) { fprintf(stderr, "malloc() failed"); exit(EXIT_FAILURE); } - +\& free(p); printf("%s(): returned from first free() call\en", __func__); - +\& free(p); printf("%s(): returned from second free() call\en", __func__); - +\& exit(EXIT_SUCCESS); } .EE |