printbuf.h
Go to the documentation of this file.
1 /*
2  * $Id: printbuf.h,v 1.4 2006/01/26 02:16:28 mclark Exp $
3  *
4  * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
5  * Michael Clark <michael@metaparadigm.com>
6  *
7  * This library is free software; you can redistribute it and/or modify
8  * it under the terms of the MIT license. See COPYING for details.
9  *
10  */
11 
12 #ifndef _printbuf_h_
13 #define _printbuf_h_
14 
15 #undef PRINTBUF_DEBUG
16 
17 struct printbuf {
18  char *buf;
19  int bpos;
20  int size;
21 };
22 
23 extern struct printbuf*
24 printbuf_new(void);
25 
26 extern int
27 printbuf_memappend(struct printbuf *p, const char *buf, int size);
28 
29 extern int
30 sprintbuf(struct printbuf *p, const char *msg, ...);
31 
32 extern void
33 printbuf_reset(struct printbuf *p);
34 
35 extern void
36 printbuf_free(struct printbuf *p);
37 
38 #endif
int bpos
Definition: printbuf.h:19
char * buf
Definition: printbuf.h:18
struct @0 p
struct printbuf * printbuf_new(void)
Definition: printbuf.c:28
void printbuf_reset(struct printbuf *p)
Definition: printbuf.c:132
void printbuf_free(struct printbuf *p)
Definition: printbuf.c:138
int printbuf_memappend(struct printbuf *p, const char *buf, int size)
Definition: printbuf.c:43
int sprintbuf(struct printbuf *p, const char *msg,...)
Definition: printbuf.c:104
int size
Definition: printbuf.h:20


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23