logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - clear, grow, or mark as altered a string buffer

Description

       The ne_buffer_clear function sets the string stored in buf to be the empty string ("").

       The ne_buffer_altered function must be used after the string stored in the buffer buf is modified by
       directly rather than using ne_buffer_append, ne_buffer_zappend or ne_buffer_concat.

       The ne_buffer_grow function ensures that at least size bytes are allocated for the string; this can be
       used if a large amount of data is going to be appended to the buffer and may result in more efficient
       memory allocation.

Name

       ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - clear, grow, or mark as altered a string buffer

Synopsis

#include<ne_string.h>voidne_buffer_clear(ne_buffer*buf);voidne_buffer_altered(ne_buffer*buf);voidne_buffer_grow(ne_buffer*buf,size_tsize);

See Also