aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-08 12:15:35 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-08 12:15:35 +0000
commitdf0081bb8cdc47ca2ce6060778ea98973371ca19 (patch)
treebd96efa585bf2b038a6b6bcba89f090ff71aa523 /doc
parentd5d3170d6e6daa58fee003c45c28c96c86c339d2 (diff)
Add some missing descriptions
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16165 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'doc')
-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