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 1.1 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * $Id: printbuf.h,v 1.2 2004/07/21 01:24:33 mclark Exp $
  3. *
  4. * Copyright Metaparadigm Pte. Ltd. 2004.
  5. * Michael Clark <michael@metaparadigm.com>
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public (LGPL)
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details: http://www.gnu.org/
  16. *
  17. */
  18. #ifndef _printbuf_h_
  19. #define _printbuf_h_
  20. struct printbuf {
  21. char *buf;
  22. int bpos;
  23. int size;
  24. };
  25. extern struct printbuf*
  26. printbuf_new();
  27. extern int
  28. printbuf_memappend(struct printbuf *p, char *buf, int size);
  29. extern int
  30. sprintbuf(struct printbuf *p, const char *msg, ...);
  31. extern void
  32. printbuf_reset(struct printbuf *p);
  33. extern void
  34. printbuf_free(struct printbuf *p);
  35. #endif

No Description

Contributors (1)