diff --git a/doc/userguide.html b/doc/userguide.html index 073f4ed..8320957 100644 --- a/doc/userguide.html +++ b/doc/userguide.html @@ -1934,7 +1934,7 @@ characters that are not inside an A(...), such as the i in the
For variable-length arrays, each call to tpl_unpack() unpacks another element. The return value can be used to tell when you’re done: if it’s positive, an element was unpacked; if it’s 0, nothing was unpacked because there are no more -elements. A negative retun value indicates an error (e.g. invalid index number). +elements. A negative return value indicates an error (e.g. invalid index number). In this document, we usually unpack variable-length arrays using a while loop:
The final step for any tpl is to release it using tpl_free(). Its only -argument is the the tpl_node* to free.
tpl_free( tn );@@ -2011,7 +2011,7 @@ current number of elements; it will decrease as elements are unpacked).
This function peeks into a file or a memory buffer containing a tpl image and +
This function peeks into a file or a memory buffer containing a tpl image and returns a copy of its format string. It can also peek at the lengths of any fixed-length arrays in the format string, or it can also peek into the data stored in the tpl.