Changeset 1249


Ignore:
Timestamp:
10/27/06 22:40:24 (7 years ago)
Author:
sam
Message:
  • Reworded documentation about buffer/string distinction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/buffer.c

    r1247 r1249  
    3232 *  Create a \e libcucul buffer that points to the given memory area. The 
    3333 *  data is not duplicated and any changes made to the original memory area 
    34  *  will appear in the buffer. If you are importing a string, the 
    35  *  terminating zero must NOT be counted in size. 
     34 *  will appear in the buffer. 
     35 * 
     36 *  Keep in mind that buffers are not strings. When loading a C string, the 
     37 *  terminating '\0' must not be part of the buffer, hence \e size should 
     38 *  be computed with strlen(). Conversely, the '\0' is not appended to 
     39 *  exported buffers even when they could be parsed as strings. 
    3640 * 
    3741 *  \param data The memory area to load. 
Note: See TracChangeset for help on using the changeset viewer.