Kaynağa Gözat

* Reworded documentation about buffer/string distinction.

tags/v0.99.beta14
Sam Hocevar sam 18 yıl önce
ebeveyn
işleme
7e9ecfc6de
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. +6
    -2
      cucul/buffer.c

+ 6
- 2
cucul/buffer.c Dosyayı Görüntüle

@@ -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.


Yükleniyor…
İptal
Kaydet