00001 /* 00002 Copyright (C) 2005- The University of Notre Dame 00003 This software is distributed under the GNU General Public License. 00004 See the file COPYING for details. 00005 */ 00006 00007 #ifndef BUFFER_H 00008 #define BUFFER_H 00009 00010 #include <stdlib.h> 00011 #include <stdarg.h> 00012 00020 typedef struct buffer_t buffer_t; 00021 00025 buffer_t *buffer_create (void); 00026 00030 void buffer_delete (buffer_t *b); 00031 00041 int buffer_vprep (buffer_t *b, const char *format, va_list ap); 00042 00052 void buffer_vprintf (buffer_t *b, const char *format, int size, va_list ap); 00053 00060 void buffer_printf (buffer_t *b, const char *format, ...); 00061 00069 const char *buffer_tostring (buffer_t *b, size_t *size); 00070 00071 #endif /* BUFFER_H */