You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

printbuf.h 717 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef _printbuf_h_
  12. #define _printbuf_h_
  13. #undef PRINTBUF_DEBUG
  14. struct printbuf {
  15. char *buf;
  16. int bpos;
  17. int size;
  18. };
  19. extern struct printbuf*
  20. printbuf_new();
  21. extern int
  22. printbuf_memappend(struct printbuf *p, char *buf, int size);
  23. extern int
  24. sprintbuf(struct printbuf *p, const char *msg, ...);
  25. extern void
  26. printbuf_reset(struct printbuf *p);
  27. extern void
  28. printbuf_free(struct printbuf *p);
  29. #endif

No Description

Contributors (1)