aboutsummaryrefslogtreecommitdiffstats
path: root/doc/README.malloc
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-10-08 12:15:35 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-10-08 12:15:35 +0000
commit8cafb43bddcd919dcdf92f05eccdb5a3f24d8db2 (patch)
treebd96efa585bf2b038a6b6bcba89f090ff71aa523 /doc/README.malloc
parent9a0ebcc75c330355747137b498ebd0de8c7824fc (diff)
Add some missing descriptions
svn path=/trunk/; revision=16165
Diffstat (limited to 'doc/README.malloc')
-rw-r--r--doc/README.malloc19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/README.malloc b/doc/README.malloc
index b5992aaa1a..033c725398 100644
--- a/doc/README.malloc
+++ b/doc/README.malloc
@@ -32,15 +32,16 @@ These two allocation scopes provide several useful functions :
.._alloc() : allocate a chunk of memory with ep/se scope.
.._alloc0() : allocate a chunk of memory and fill it with 0.
.._strdup() : equivalent to strdup()
-.._strndup()
-.._memdup()
-.._strdup_printf()
-.._alloc_array()
-.._strsplit()
+.._strndup(s,n) : allocate a chunk of size n+1 and copy s into it
+.._memdup(s,n) : allocate n chunk and copy into it n bytes starting at s
+
+.._strdup_printf() : will calculate the size of the formated string allocate a chunk for it and format the string
+.._alloc_array(t,n): will allocate an array of n elements of type t
+ep_strsplit(): will split a string based on a certain separator returning an array of strings
Stack management:
-.._stack_new()
-.._stack_push()
-.._stack_pop()
-.._stack_peek()
+ep_stack_new() : creates a stack
+ep_stack_push() : pushes an element into the stack
+ep_stack_pop() : pops an element from the stack
+ep_stack_peek() : returns the top element of the stack without popping it