Browse Source

* Reworded documentation about buffer/string distinction.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
7e9ecfc6de
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      cucul/buffer.c

+ 6
- 2
cucul/buffer.c View File

@@ -31,8 +31,12 @@
*
* Create a \e libcucul buffer that points to the given memory area. The
* data is not duplicated and any changes made to the original memory area
* will appear in the buffer. If you are importing a string, the
* terminating zero must NOT be counted in size.
* will appear in the buffer.
*
* Keep in mind that buffers are not strings. When loading a C string, the
* terminating '\0' must not be part of the buffer, hence \e size should
* be computed with strlen(). Conversely, the '\0' is not appended to
* exported buffers even when they could be parsed as strings.
*
* \param data The memory area to load.
* \param size The size of the memory area.


Loading…
Cancel
Save