aboutsummaryrefslogtreecommitdiff
path: root/doc/grecs_strdup.3
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-07 00:24:03 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-07 00:24:03 +0300
commited39daa568d162617a183497010d70a55a38ae73 (patch)
tree313c1caef8b42ab1800f5c1cef8dece9116fbd0d /doc/grecs_strdup.3
parent18d7db07b9f369901300bf664d07d4b39032ce64 (diff)
downloadgrecs-ed39daa568d162617a183497010d70a55a38ae73.tar.gz
grecs-ed39daa568d162617a183497010d70a55a38ae73.tar.bz2
Redo memory management (2).
* src/grecs.h (grecs_free_fun): New extern. (grecs_free): New proto. * src/format.c: Use grecs_free where appropriate. * src/grecs-lex.l: Likewise. * src/preproc.c: Likewise. * src/tree.c: Likewise. * src/lookup.c (parse_label): Use grecs_value_list_create. * src/mem.c: Initialize hooks with the default values. (grecs_free_fun): New hook. (grecs_free): New function. * doc/grecs_malloc.3: Document grecs_free. * doc/grecs_parse.3: Document the recent changes. * doc/grecs_strdup.3: Update.
Diffstat (limited to 'doc/grecs_strdup.3')
-rw-r--r--doc/grecs_strdup.36
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/grecs_strdup.3 b/doc/grecs_strdup.3
index 441eb23..ae861e4 100644
--- a/doc/grecs_strdup.3
+++ b/doc/grecs_strdup.3
@@ -16,7 +16,7 @@
.\" This file is part of SLB.
.\" Copyright (C) 2011 Sergey Poznyakoff
.\"
-.TH GRECS_STRDUP 3 "May 3, 2011" "GRECS" "Grecs User Reference"
+.TH GRECS_STRDUP 3 "May 7, 2011" "GRECS" "Grecs User Reference"
.SH NAME
grecs_strdup \- duplicate a string
.SH SYNOPSIS
@@ -31,8 +31,8 @@ The
function returns a pointer to a new string which is a duplicate of the
string \fIstr\fR. Memory for the new string is obtained with
.BR grecs_malloc (3),
-and can be freed with
-.BR free(3).
+and must be freed with
+.BR grecs_free (3).
.SH "RETURN VALUE"
The
.BR grecs_strdup ()

Return to:

Send suggestions and report system problems to the System administrator.