Rechercher une page de manuel
ne_buffer_clear
Langue: en
Version: 20 January 2006 (CentOS - 06/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - general purpose of group of functionsSYNOPSIS
#include <ne_string.h>
- void ne_buffer_clear (ne_buffer *buf);
- void ne_buffer_altered (ne_buffer *buf);
- void ne_buffer_grow (ne_buffer *buf, size_t size);
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(3), ne_buffer_zappend(3) or ne_buffer_concat(3).
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.
AUTHOR
Joe Orton <neon@webdav.org>.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre