# printbuf.h File Reference

## Data Structures
struct | printbuf
## Functions
struct printbuf * | printbuf_new (void)
int | printbuf_memappend (struct printbuf *p, char *buf, int size)
int | sprintbuf (struct printbuf *p, const char *msg,...)
void | printbuf_reset (struct printbuf *p)
void | printbuf_free (struct printbuf *p)

## Function Documentation

void printbuf_free | ( | struct printbuf * | p | ) |

int printbuf_memappend | ( | struct printbuf * | p,
|  | char * | buf,
|  | int | size |
| ) |  |  |

struct printbuf* printbuf_new | ( | void |  | ) | `[read]`

void printbuf_reset | ( | struct printbuf * | p | ) |

int sprintbuf | ( | struct printbuf * | p,
|  | const char * | msg,
|  |  | ... |
| ) |  |  |